My guess is that somewhere higher in your vimrc, you source some
other file like
so example_vimrc
or
source example_vimrc
which changes the option. If you remove/comment *your* line in
question (such as "set nobackup") from your vimrc, start vim, and
then type
:verbose set backup?
it should tell you which script was changing it before you got a
crack at it. Just make sure your preferences are set after
sourcing this file.
-tim
Then all you have to do is either
1) move the "source example_vimrc" to the top of your vimrc (my
preferred solution because it will help prevent similar issues if
they would normally appear later) or
2) make sure that your "set nobackup" comes after the "source
example_vimrc" regardless of where they are in the file
-tim
In fact, if (like me) you source the vimrc_example.vim (the real name of
that file), there are very _few_ settings which need to be before it, so
it can be near the top of your vimrc (and it should, so, like Tim said,
any option you set yourself in your vimrc will override the example
vimrc's setting and not vice-versa).
One of the very few settings which need to be before sourcing the
example vimrc rather than after it is setting the menu and messages
language, because that must happen before defining the menus, and the
example vimrc sets them up (implicitly, via "filetype plugin indent on"
and "syntax on").
Best regards,
Tony.
--
Although the moon is smaller than the earth, it is farther away.