Reply to message «Re: deleting current file», sent 20:56:29 15 January 2011, Saturday by Michael Henry:
Thanks. It is interesting, that ``verbose set bkc'' claims that it was set in
the vimrc, but in fact it is not (probably it was modified by `set
nocompatible'
which resets other options).
Original message:
> On 01/15/2011 11:18 AM, ZyX wrote:
> > On my system vim deletes the old file and moves new to its
> > place (by the way, does someone know how to make vim modify
> > existing file instead?).
>
> I believe the option 'backupcopy' controls this. From Vim's
> help::
>
> """
> 'backupcopy' 'bkc' string (Vi default for Unix: "yes", otherwise:
> "auto")
> global
> {not in Vi}
> When writing a file and a backup is made, this option tells how it's
> done. This is a comma separated list of words.
>
> The main values are:
> "yes" make a copy of the file and overwrite the original one
> "no" rename the file and write a new one
> "auto" one of the previous, what works best
> """
>
> To check your value and see where it was set::
> :verbose set backupcopy?
>
> Michael Henry
signature.asc
Description: This is a digitally signed message part.
