Last Updated on March 26, 2023 by mishou
I. Verb Modifier Object
You can talk to Vim or Neovim in Verb Modifier Object sentences. Here are some of verbs, modifiers and objects.
Verbs:
v (visual), c (change), d (delete), y (yank/copy)
Modifiers:
i (inside), a (around), t (till..finds a character), f (find..like till except including the char), / (search..find a string/regex)
Objects:
w (word), s (sentence) p (paragraph) b (block/parentheses), t (tag, works for html/xml)
Refer to:
Learn to speak vim — verbs, nouns, and modifiers!
Tips You Wish You Knew While Learning Vim
II. Let’s speak to Vim or Neovim in sentences
delete the current word
diw
delete the current word and enter insert mode after
ciw
change current sentence
cis
change a string inside quotes
ci”
change until next occurrence of ‘foo’
c/foo
change everything from here to the letter X
ctX
visually select this paragraph
vap
III. Add ” ” to multiple words
Let’s add ” ” to multiple words using II and the small delete register (CTRL-r) and ..
