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

How do you save a macro permanently in your vimrc?

Answer

:let @a='...' in vimrc

Explanation

Add let @a='macro-keystrokes' to your vimrc file to have the macro available in every Vim session. Use special key notation for control characters.

Next

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