11.1. Macro - shinokada/vimnotes GitHub Wiki
q{register} to start recording and q to stop.
qa # start recording into register 'a'
A;<Esc> # Append ; and escape
I to go to the beginning and change to Insert mode and enter var and escape.
Ivar <Esc>
q # to stop recording
# check the register 'a'
:reg a
# notice ^[ is the same as <Esc>
@{register}
## repeat the last macro invoked
@@
j
@a
j@@ # repeat the last macro invoked