What distribution/version are you running? Emacs is always
an editor of choice otherwise. Type
or whatever the file name is. Then after you have finished editing it, type ctrl-x ctrl-s to save. ctrl-x ctrl-c leaves emacs.
After you start using emacs (on a daily basis preferably) you will notice that the sky is much bluer and the sun is warmer.