vi basics
x - delete a character
! - start of line
$ - end of line
dd - delete line
i - go to insert mode
a - go to append mode
esc - go back to command mode
u - undo
:wq - write and quit
:q! - just quit
:e! - undo what you did to the file and start over
:q! emacs - anything more complicated
