Nick's guide to vi(m)

Posted by Nick Gammon on Mon 02 Feb 2004 04:13 AM — 3 posts, 21,669 views.

Australia Forum Administrator #0
I know the vi editor is widely regarded as something best to avoid, but when you get used to it, it is very powerful. I have done a lengthy Nick's guide to vi(m) page which goes through the more common things you might want to do with it.
Amended on Mon 02 Feb 2004 04:14 AM by Nick Gammon
#1
Wow. Very nice guide. I personally like vi, but it is a bit of a pain to get used to. I'll be sure to send anyone who is interested in using it over to your guide.
Australia Forum Administrator #2
Thanks. Following your message I found a couple of minor problems, and added a couple of clarifications.

  1. The command to delete the entire contents of a file is ":%d" not "%d".
  2. Added explanation about things you type after ":", "/" or "?" appearing at the bottom of the screen, and how to cancel it.
  3. Added explanation about using the .vimrc file to set up your personal settings.