To type text press press insert or i

Copy paste, move the curser to the location where to start copy from select v for visual highlight text then press y for yank to copy text or d to cut, move to location to paste to and press p

Undo press u

Delete line press dd

Save press esc and then :wq! to write and quit

To quit with out save :q!

Navigation commands in VI

  1. Esc + Ctrl + End – Jump end of file.
  2. Hit Esc + Ctrl + Home : Jump start of file.
  3. Press Esc + gg : Go to top the file.
  4. Esc + G : Go to bottom of the file.
  5. Esc + G + A : Go to bottom of the file and in append text mode. … 
  6. Hit Esc + A + $ : Go to bottom of the file and end of line.