Macros & Repeating
Vim Text Editor Quick Reference
1 min read
This section is 1 min read, full guide is 16 min read
Published Jul 6 2025
11
Show sections list
0
Log in to enable the "Like" button
0
Guide comments
0
Log in to enable the "Save" button
Respond to this guide
Guide Sections
Guide Comments
LinuxText Editor
Macros
Key | Description |
---|---|
qletter | Start recording and save to the letter register, (you can record to any a-z letter) |
q | Stop recording, any cursor movements and edits will be saved as part of the recording |
@letter | Run a saved macro using its register letter |
number@letter | Run a saved macro using its register letter, number amount of times |
@@ | Repeat last macro |
Repeating
Key | Description |
---|---|
. | Repeat the last command |
; | Repeat last f, F, t, or T in same direction |
, | Repeat it in the opposite direction |
& | Runs the last substitute command again using the same pattern. So you can move to another location and re-run the same substitution |
@: | Runs the last command you typed after a : again |