Replay the last macro
@@
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 3Run the most recently executed register again.
Vim registers
aRegister a- Characterwise
A!<Esc>j
Macro
- Recording register
None- Executing register
None
Run the most recently executed register again
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. A previous @a is prepared for @@.
Details & Vim help
Example replayed in Vim
Run the most recently executed register again.
@@ repeats the register most recently used by @. It needs an earlier macro execution; it does not choose the most recently recorded register automatically.