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

How do you record a macro to join every other line pair?

Answer

qaJjq

Explanation

Record a macro that joins the current line with the next using J, then moves down one line with j. Repeat to join alternating line pairs.

Next

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