[Ilugc] [OffTopic][GVim]how to disable file replication?

  • From: mssnlayam@xxxxxxxxxxxxxxx (Suriya Narayanan M S)
  • Date: Mon, 2 Sep 2002 20:50:01 +0530

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


Other related posts: