In another thread I once posted some instructins for quickly getting oriented with Vim - find it here
, and look over the other helpful posts in that thread as well.
Here is a short paste from that post that might help you get going quickly...
Next, get oriented quickly!
I think the most difficult thing for people who simply open vi or a clone is that they see the blank page and begin typing - and weird stuff happens! Then they can't get out of it and they leave in frustration thinking the learning curve is too steep!
So to get past that point as quickly as possible note the following:
1. Vi(m) has two modes - command mode and insert mode (also called normal mode and edit mode respectively).
2. When you first start vi it is always in command mode, so key presses are interpreted as commands, not text.
3. To enter insert mode from command mode simply press i, then begin typing your text.
4. To return to command mode at any time simply press the ESC key.
You will see helpful status messages in the lower left corner of the terminal window as you change modes.
To leave vi you must be in command mode (pres ESC if not sure) then try one of these:
ZZ (shift-zz) - writes (saves) the current edits and exits.
:wq - writes (saves) the current edits and quits (same as ZZ).
:q - quit, prompts you to save any unsaved edits first (:w will write the to file)
:q! - quits without saving edits.
Also - from a terminal simply type vimtutor to get the always present on demand Vim tutor!