Macros & Repeating

Vim Text Editor Quick Reference

1 min read

Published Jul 6 2025, updated Aug 17 2026


11
0
0
0

LinuxText Editor

Macros

KeyDescription
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

KeyDescription
.

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


© 2025 SimpleSteps.guide
AboutFAQPoliciesContact