q
The
Command
The q command in Vim
Command
record macro
Record a macro into register
{a-z}. Press q again to stop recording. Replay with @{reg}. Use @@ to repeat the last macro.Examples
qq(record to q)q(stop recording)@q(replay macro q)@@5@q(replay 5 times)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands