Vim motions

From wikinotes
Revision as of 13:57, 22 July 2022 by Will (talk | contribs) (Created page with "vim commands are usually composable with text-objects.<br> text objects let you refer to groups of tokens in your file with a letter or two. For example <syntaxhighlight lang="vim"> ci} " change all text within {}s (from anywhere within {}s) daw " delete a word (from anywhere in word) </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

vim commands are usually composable with text-objects.
text objects let you refer to groups of tokens in your file with a letter or two.

For example

ci}  " change all text within {}s (from anywhere within {}s)
daw  " delete a word (from anywhere in word)