Skip to content
shinokada edited this page Feb 28, 2014 · 2 revisions

Record

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>

Play back

@{register}
## repeat the last macro invoked
@@

j
@a
j@@ # repeat the last macro invoked

11. Macro.md


  1. Macro
Clone this wiki locally