Thursday, February 11, 2010

No backup in Vim

Ever wondered why these files with *.*~ get generated and if there was a way to avoid that ?

1. Open vim
2. Esc : e $MYVIMRC
3. add the following lines after the "source " commands.
set nobackup
set nowritebackup
4. esc : wq

Thats it .. now your vim should stop writing backup files.