qarecordeditany keysqstop@areplayEverything between qa and q lands in register a.
Only the middle step is real work. Everything you press between qa and q is stored in register a, and @a plays it back exactly — as many times as you like.
Vim Record & replay: q @
advanced » Record "add ; and go down", then replay it twice.
goal
a;
b;
c;
scratch.txt
1 a
2 b
3 c
-- NORMAL -- 1,1
keys
your keystrokes appear here as you press them
NORMAL ~/learn/vim-motions · 1/1 · q@ real vim keys trail · always esc in-editor

Best on a keyboard

“Record & replay: q @” is a hands-on typing drill — it needs a physical keyboard. Open it on a laptop or desktop to play. You can still browse and read everything here on your phone.

Back to course →
NORMAL ~/memra/learn/vim-motions/record-and-replay utf-8 LF