Here are some vi commands.
:1,$s/old/new/g find old, replace with new
:set all show all settings
:set list display invisible characters
:set showmode display the mode
:3,8d delete lines 3-8
D delete to end of lines
J4 join 4 lines to current
:4,9m 12 move lines 4-9 to 12
:2,5t 13 copy lines 2-5 to 13
:5,9w file write lines 5-9 to file
ZZ write buffer and quit
% goto matching brace/paren
3G goto line 3
3w go forward 3 words
3b go back 3 words
n repeat privious search
N reverse privious search
:r read into current text
:r ! read output from command into current text
:nr read in at line number
:sh goto shell
|