VIM option file
Sunday, January 16th, 2005Setting VIM options:
http://babbage.cs.qc.edu/courses/cs701/Handouts/using_vim.html
The installation program normally puts a file named .vimrc in your home directory. On Windows, the file will be named _vimrc, and will be in the directory where Vim was installed. For example, when I installed version 6.1, it was placed in D:\Utils\Vim\vim61, and the _vimrc file was put in D:\Utils\Vim. Also, the Windows environment variable, VIM, was set to D:\Utils\Vim.
The standard .vimrc file supplied with the Vim distribution is not quite correct for use in this course. You need to set the tab width to something small, you must set the option to replace tabs with spaces, and you need to tell vim to wrap lines longer than 72 characters.
I also have some keyboard shortcuts that I like to use, mostly so I can enter certain commands while I am in insert mode. Here are links to two .vimrc files, one for Windows and one for Unix that you may use as a model for your own. Feel free to modify them as you wish, but be sure not to change the expandtab and tw options!
Other example .vimrc files:
http://tabo.aurealsys.com/code/vimrc.html
Excellent page for explanation of some .vimrc options
http://www.stripey.com/vim/
Turn that irritating beep off: set visualbell