Learning VIM notes

vim = vi improved version

The list of key

Key Description
. Repeat last command
x Delete at cursor
dd Delete line
d$ Delete from cusor to end of line
db Delete from cusor back to begining of word
dw Delete word if cusor at the begining of word
daw Delete a word
yy Copy
p Paste
j Down
k Up
h Left
l Right
b Move to begining of word
$ Move to end of line
^ Move to begining of line
gg Move to begining of file
A Move to end of line and turn to edit mode A = $a
f{char} Search {char}
; Find forward
, Find backward
/pattern Search pattern in file
n Search next pattern in file
N Search previous pattern in file
cW delete word

Insert mode

Key Description
CTRL + h delete one character = backspace
CTRL + w delete one word
CTRL + u delete one line
CTRL + o insert normal mode
A insert normal mode
o insert mode at next line
Key Description
CTRL + b Back one full screen
CTRL + f Forward one full screen
CTRL + d Down half of screen
CTRL + u Up half of screen