Press escape, then :wq
w means write, q means quit. It seems weird at first but it's well worth sticking with. I now get confused if i use notepad, and end up with :wq all over the place!
G'Luck
--
Don't Stand on your head - you'll get footprints in your hair
http://charlieharvey.org.uk
http://charlieharvey.com