.vimrc is the config file for Vim. It can be stored in the Vim directory or in your user directory. With greater protection of the Program Files directory on Vista, I've gotten into the habit of keeping it in my user directory (c:\users\steverowe on most systems). here are most of the non-standard options I have in my .vimrc file. Maybe you can pick up some pointers.
"set tabs to 4 spaces.set tabstop=4set expandtabset shiftwidth=4 "automatically indentset smartindentset cindent "case insensitive searchset ignorecaseset smartcase "search the whole build tree for ctagsset tags=tags;/ "open the window larger than normal (100 wide by 40 tall)win 100 40 set nocompatible"allow for c,w to change part of a camel-cased wordsource $HOME/camelcasemotion.vim "make it so mouse and keyboard don't exit select mode.""this makes it so we can select with the mouse and then act on that block."set selectmode="" "make long-line navigation work like other windows appsmap <DOWN> gjmap <UP> gkimap <C-UP> gkiimap <C-DOWN> gji "from here down is the default _vimrcset nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswin set diffexpr=MyDiff()function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif let eq = '' if $VIMRUNTIME =~ ' ' if &sh =~ '\<cmd' let cmd = '""' . $VIMRUNTIME . '\diff"' let eq = '"' else let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"' endif else let cmd = $VIMRUNTIME . '\diff' endif silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eqendfunction
"set tabs to 4 spaces.set tabstop=4set expandtabset shiftwidth=4
"automatically indentset smartindentset cindent
"case insensitive searchset ignorecaseset smartcase
"search the whole build tree for ctagsset tags=tags;/
"open the window larger than normal (100 wide by 40 tall)win 100 40
set nocompatible"allow for c,w to change part of a camel-cased wordsource $HOME/camelcasemotion.vim
"make it so mouse and keyboard don't exit select mode.""this makes it so we can select with the mouse and then act on that block."set selectmode=""
"make long-line navigation work like other windows appsmap <DOWN> gjmap <UP> gkimap <C-UP> gkiimap <C-DOWN> gji
"from here down is the default _vimrcset nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswin
set diffexpr=MyDiff()function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif let eq = '' if $VIMRUNTIME =~ ' ' if &sh =~ '\<cmd' let cmd = '""' . $VIMRUNTIME . '\diff"' let eq = '"' else let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"' endif else let cmd = $VIMRUNTIME . '\diff' endif silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eqendfunction