On Monday 02 September 2002 11:55 am, Suraj.co.in wrote:
> >Â hai all,
> >Â Â Â iam using gvim for editing source and text files in win nt.
> >Â whenever i use gvim to edit files that already exists, gvim
> >Â replicates the file with '~' attached with the name of the file.(i
> >Â suppose the same happens with vim also).the same doesn't happen,
> >Â if i edit a new file.
>
> This feature is called 'backup' and can be disabled by using the vim
> command :
> :set nobackup
>
> You can put the same in your .vimrc (without the preceding ':' sign (ie as
> set nobackup)).
> Â -Suraj
It is always advisable to have backups.
Rather than disabling backups altogether, please try this.
Create a directory ~/.vim-backup
Add these lines to your .vimrc
set backup
set backupdir=~/.vim-backup/
The files would quietly reside in ~/.vim-backup
and you can use them when in need.
Suriya Narayanan M S
--
Guru Brahma Gurur Vishnu
Gurur Dhevo Maheshwaraha
Gurur Saakshaath Parabramha
Thasmai Shree Gurave Namaha