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.
:let @a='...' in vimrc
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.