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

How do you record a macro to convert tabs to spaces on each line?

Answer

qa:s/\t/ /g\njq

Explanation

Record a macro that substitutes all tabs with spaces on the current line, then moves down. Run across all lines with 999@a.

Next

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