Open file: vi <filename>

Input Mode

a Append after cursor
i Insert before cursor
o Open line below
O Open line above
:r file Insert file after current line

Leave input mode:<Esc>


H Upper left corner (home)
M Middle line
L Lower left corner
h Back a character
j Down a line
k Up a line
^ Beginning of line
$ End of line
l Forward a character
w One word forward
b Back one word
fc Find c
; Repeat find (find next c)

File Management

:w Write
:w <name> Write buffer to name
:wq Write and quit
:q! Quit!
:sh Invoke shell (<ctrl><d>)