EMERGENCY VIM QUICKSTART
You’ve ssh’d onto a server.
You need to edit a file now.
You need to use vim, and you haven’t a clue.
You don’t have time for long explanations.
READ THIS NOW
- You’re in the terminal so normal mouse usage for editing isn’t an option. Sorry, that’s a terminal thing, not Vim.
- Vim has a writing mode, and a not writing mode.
- You type
ito start Inserting text into the document.
- You press
<ESC>when you’re done inserting text.
- To save hit
- To quit hit
- Navigate with the arrow keys. Yes, there are better ways, but you don’t have time for that.
**STOP READING. Go edit that file! **
“AAH! AAAH! I accidentally edited something and don’t know how to fix it!” - - You, when you don’t have time for this s@#$.
<ESC> then add a bang to your quit
:quit! That’s vim for “I didn’t mean it! Don’t save any of
that!. Let me out!”
That was the “emergency” version. If you were on a desktop, using the mouse and your standard key combos for saving and quitting would have been an option. When the crisis has passed and you’ve got some time, please check out the getting started posts.