I had been using VIM since version 3.0 but spent little time to customize it. The latest version (6.xx) was released and I decided that the time had come to properly configure the program with a custom .vimrc
On June 2001 I went to the McGraw-Hill Bookstore at: 1221 Avenue of the Americas(Now closed) and picked up a copy of: Vi IMproved--Vim by: Steve Oualline I read the book cover to cover and I have to give it an A++. It covers almost everything one needs to know about VIM. One thing that I found missing was more examples on programming and tricks. I hope this is expanded in future editions.
Why create a custom .vimrc? Well, in our site we run Solaris and Slackware Linux. Our requirements are that VIM should be used everywhere with a single version of .vimrc Another requirement is that the same .vimrc be used as .gvimrc This does away with keeping track of many configuration files.
December 10 2001, NT Update: Since I started working with NT, the vimrc file must include support for Windows(Yuk!).
Well, here I am in August and I have created what I think is a very useful and smart .vimrc Read on and if you decide to have a look at my customized version, get it from here, copy it to your home directory and also link it as .gvimrc Create a directory $HOME/vimtmp and move the .viminfo file there (if it exists). Now, Start VIM!!!
NT, Update: Copy .vimrc as _vimrc in the $HOME directory. Don't create a _gvimrc there because it will cause a conflict. Create a $HOME\vimtmp directory and move the .viminfo file there.
We also needed to start with only VIM and .vimrc available (no syntax or help files) and still be functional. The program should figure out things like include directories, backup directories and system architecture.
In Solaris the root user's home directory is: / In Linux, root's home directory is in: /root Because of these and other differences we decided to make a list on how VIM should handle things.
July 7 2003 update:
Added a "F2" command that changes the normal gvim font to an alternate (DEC). It is also very nice,