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

How do you run a macro a specific number of times in Vim?

Answer

50@a

Explanation

Prefix the macro playback command with a count. 50@a runs macro a exactly 50 times. The macro stops early if it encounters an error.

Next

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