vi
Survival Skills
The two most important things to remember:
[Esc]
gets you back to command mode
(wait for the beep)
:wq
or
ZZ
gets you out of
vi
, and saves your work
:q!
gets you out of
vi
, and throws all your changes away