Training plan › Power
Macros
Record once, replay a thousand times.
A macro records your keystrokes so you can replay them. qa starts recording into register a, q stops. @a replays it and @@ repeats the last one. The trick for a repeatable macro: always end with a motion that leaves you ready for the next run (usually j).
4 steps · 5 min · 90 XP
- Record: qa ... q
- Replay: @a
- Replay with a count: 3@@
- Alternative: :normal on a range