Vim Editor Learning - muhammed-ajmal/Install-Config GitHub Wiki

acronyms

verb modifier object


some verbs

v (visual)

c (change)

d (delete)

y (yank/copy)

some modifiers

i (inside)

a (around)

t (till..finds a character)

f (find..like till except including the char)

/ (search..find a string/regex)

some text objects

w (word)

s (sentence)

p (paragraph)

b (block/parentheses)

t (tag, works for html/xml)

basic commands


delete the current word: diw (delete inside word)

change current sentence: cis (change inside sentence)

change a string inside quotes: ci” (change inside quote)

change until next occurrence of ‘foo’: c/foo (change search foo)

change everything from here to the letter X: ctX

visually select this paragraph: vap (visual around paragraph)