Vim macros

From wikinotes
Revision as of 18:16, 17 July 2021 by Will (talk | contribs) (Created page with "Macros record keystrokes, and let you to play them back.<br> It is useful for repetitive tasks affecting hundreds of lines. = Usage = <blockquote> <syntaxhighlight lang="vim"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Macros record keystrokes, and let you to play them back.
It is useful for repetitive tasks affecting hundreds of lines.

Usage

q<letter>    " start recording macro bound to <letter>
q            " stop recording

@<letter>    " play-back recording