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.
Nick's guide to vi(m)
Posted by Nick Gammon on Mon 02 Feb 2004 04:13 AM — 3 posts, 21,669 views.
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.
Thanks. Following your message I found a couple of minor problems, and added a couple of clarifications.
- The command to delete the entire contents of a file is ":%d" not "%d".
- Added explanation about things you type after ":", "/" or "?" appearing at the bottom of the screen, and how to cancel it.
- Added explanation about using the .vimrc file to set up your personal settings.