Most common vi commands


  vi <name> - run the vi editor on a text file
  arrow keys - move around in vi
  i - start inserting text
  A - start inserting text at end of the current line.
  <esc> stop inserting text
  dd - delete line
  x - delete character
  :wq - save and exit
  :q! - quit, do not save