vimtricks.wiki Concise Vim tricks, one at a time.

How do you use a macro to convert CSV data to a Markdown table row?

Answer

qaI| <Esc>:s/,/ | /g\nA |<Esc>jq

Explanation

Record a macro that adds pipe delimiters around CSV fields, converting each line to a Markdown table row format.

Next

How do you yank a single word into a named register?