Vim Macros
Recording and using macros
Record Macro
qa # start recording macro in register a
q # stop recording macro
Play Macro
@a # play macro from register a
@@ # replay last macro
10@a # play macro 10 times
View Macros
:reg a # view contents of register a
:reg # view all registers
Edit Macro
:let @a= # edit macro in register a