Before we start --------------- To quit vim (or vi): 1. Don't panic 2. Press Esc a few times 3. Type :q! Notes: The exclamation mark is not for emphasis. This loses your work. To save and exit type :wq instead.