Donn Washburn wrote:
Hey Group;
REF: backup file name - file~

I have tried turning this off in ~/.vimrc and it still works. I find this character as a pain because double clicking fails to see a "~" and without being careful it is possible to delete the wrong file seen which is missing the "~". I have looked in Vim7.0 source for "~" and didn't find it. ./configure --help seems to offer no way to defeat or change it. Is there a variable or something to set that will change it to something like file.bak

see
        :help backup
        :help 'backup'
        :help 'backupdir'
        :help 'backupext'
        :help 'patchmode'
        :help 'writebackup'

To turn it off (still make a temporary backup while Vim is in the process of writing the file, but delete it as soon as the write is found to be "succesful"):

        :set nobackup writebackup

To use ".bak" instead:

        :set backup backupext=.bak

See also ":help 'backupext'" about how to include a timestamp in the backup filename.


Best regards,
Tony.

Reply via email to