Stop recording a macro
q
Example
Normal 0 / 1Normal 1 / 1ne twoCursor on line 1, column 1ne twoCursor on line 1, column 1Finish the active macro recording.
Vim registers
aRegister a- Characterwise
saved
Macro
- Recording register
a- Executing register
None
Finish the active macro recording
Vim registers
aRegister a Changed- Characterwise
x
Macro
- Recording register
None- Executing register
None
Before & after
ne twoCursor on line 1, column 1Vim registers
aRegister a- Characterwise
saved
Macro
- Recording register
a- Executing register
None
ne twoCursor on line 1, column 1Vim registers
aRegister a Changed- Characterwise
x
Macro
- Recording register
None- Executing register
None
Start in Normal mode. Recording into a is prepared by qa then x; q ends that recording.
Details & Vim help
Example replayed in Vim
Finish the active macro recording.
While recording, press q in Normal mode to stop. The terminating q is not saved in the recording. Outside a recording, q instead waits for a register name.