Click to See Complete Forum and Search --> : unset global vim options in your .vimrc file


fatTrav
09-27-2004, 09:16 PM
I found this really helpful and a pain to find, so I'm posting it here.

Some of us might be really anal about our vi/m settings. I am. And some of us might be annoyed when working on a box that has global vim settings that we don't like (in /etc/vimrc or something similiar) and we aren't in a position to change them.

You can easily set and unset most options by modifying your .vimrc file with
set optionname (turns on)
set nooptionname (turns off)

An example would be to turn off autoindexing which is set to on in the /etc/vimrc by this line in your .vimrc file
set noautoindent

Though do take note that there are a few options that can take on and off as an arguement (syntax on/off, filetype on/off come to mind) but this seems like it wil work for most.

Hope this helps someone else!