-
daw
= delete the word under the cursor ("delete a word") -
caw
= delete the word under the cursor and put you in insert mode ("change a word") -
f<character>
= put the cursor on the next character ("find") -
^
= go to beginning of text on line (compare to0
) -
<SHIFT>i
= go to beginning of test on line and insert mode. -
*
= search for word in whole doc -
di"
= delete inside quotes -
yi"
= yank inside quotes -
d
stands for delete in Vim, which in other editors is usually called cut -
y
stands for yank in Vim, which in other editors is usually called copy -
yyp
- duplicate line -
:s/foo/bar/g
find/replace in line -
<ESC> o
- To open a line below -
<ESc> Shift + o
- To open a line above.
yiw
(yank inner word)vwip
(visual word insert paste)