Section: Macros

Play a macro

vim
vim
@q  10@q
Explanation

Counts let you replay the macro over many lines.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Macros
Repeat last macro
Run the last-executed macro again.
OpenIn sheetvimsame section
Record a macro
Start recording keystrokes into a register.
OpenIn sheetvimsame section
Run a macro over a range
Apply a macro to every line in a selected range.
OpenIn sheetvimsame section
Search forward
Find the next match after the cursor.
OpenIn sheetvim1 tag match
Substitute on current line
Replace matches only on the current line.
OpenIn sheetvim1 tag match
Search backward
Search upward through the file.
OpenIn sheetvim1 tag match