Replay macro a
@a
Example
Normal 0 / 1Normal 1 / 1one
two
three
four
five
sixCursor on line 1, column 1one!
two
three
four
five
sixCursor on line 2, column 3Execute the commands stored in register a.
Vim registers
aRegister a- Characterwise
A!<Esc>j
Macro
- Recording register
None- Executing register
None
Execute the commands stored in register a
Vim registers
aRegister a- Characterwise
A!<Esc>j
Macro
- Recording register
None- Executing register
None
Before & after
one
two
three
four
five
sixCursor on line 1, column 1Vim registers
aRegister a- Characterwise
A!<Esc>j
Macro
- Recording register
None- Executing register
None
one!
two
three
four
five
sixCursor on line 2, column 3Vim registers
aRegister a- Characterwise
A!<Esc>j
Macro
- Recording register
None- Executing register
None
Start in Normal mode. Register a contains A! followed by Esc and j: append !, then move down one line.
Details & Vim help
Example replayed in Vim
Execute the commands stored in register a.
@a reads register a as commands. Before replaying, position the cursor where the recording expects to begin. Errors can interrupt a macro.