On 01/21/2013 07:24 AM, ping wrote:

> vim backup file is great in 99% scenarios, but it's annoying to create
> an un-wanted file in some system directories, especially in dirs that
> contains configurations for apps.
> how, can I disable the backup file creation, right when I launch vim to
> read a file?
> 
> I know another workaround is to just launch vim without any file, turn
> off backup file creation, and then open the files...

I'm not aware of an option to turn backups off on a per file basis but I
always set in my vimrc the directory to which the backups are saved:

'set backup

set backupdir=~/.backup'

Cheers,

  Phil...

-- 
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to