03 November 2006

Misc: Vim No Backup

I got a new workstation at work and reinstalled Vim. Then vim started creating backup files with the tilde (~) and .bak extensions. Right-O, no problem. I edited my _vimrc file and added set nobackup and set nowritebackup but that didn't work. Puzzled about this problem off-and-on for a couple of weeks. It turns out that I added my settings before source $VIMRUNTIME/vimrc_example.vim and source $VIMRUNTIME/mswin.vim. Duh! My configuration settings were being overrode by the default settings. I moved my configuration settings below those two lines and vim behaved as expected.