Updated: 07 October 2025
- Type
qn
to record a macro into registern
. - Type
q
to stop recording the macro. - Type
@n
to run the macro in registern
.
The list of commands which make up the macro are stored in the n
register. If the macro needs to be edited, paste it with "np
. Then, after editing, select it and copy back into the register with "ny
.
Use @@
to repeat the last macro.