How do I save and quit Vim quickly from normal mode without typing a colon command?
ZZ
ZZ is a normal mode shorthand that saves and quits only if the buffer has been modified.
ZZ
ZZ is a normal mode shorthand that saves and quits only if the buffer has been modified.
:let @a='...' in vimrc
Add let @a='macro-keystrokes' to your vimrc file to have the macro available in every Vim session.