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

How do you use a macro to delete the first word of every line?

Answer

qa0dwjq

Explanation

Record a macro that goes to the start of line with 0, deletes the first word with dw, and moves down with j. Repeat across lines.

Next

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