You are not logged in.

#1 2008-11-05 15:44:12

Inkaine
Member
From: Germany
Registered: 2008-07-14
Posts: 88

vi creating backups by default since 7.2.25-1

Did anyone else notice that vim has been making backups of all edited files since the recent update - on the contrary to previous behavior? Was this change intentional? Or what happened there? I actually don't want my system being spammed with multitudes of *~-files all over the place.

Setting nobackup option in .vimrc didn't help either, backups are still being written. I'd much rather have that setting back as default anyways. If I can get that back by re-compiling vi myself I'd be fine with that, just if anyone could tell me what option to set there. Thanks in advance.

Offline

#2 2008-11-05 17:20:42

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vi creating backups by default since 7.2.25-1

Open vim and run the following:

:set backup?
#expected output: "nobackup"
:set writebackup?
#expected output "nowritebackup"

If the output of these are "backup" or "writebackup", your vimrc isn't being sourced right.

What package are you using? Be aware that the vi package uses ~/.virc instead of vimrc.
How are you turning backups off? It should be "set nobackup"

Offline

#3 2008-11-06 12:34:59

Inkaine
Member
From: Germany
Registered: 2008-07-14
Posts: 88

Re: vi creating backups by default since 7.2.25-1

Thanks, phrak, it worked using .virc. I hadn't tried that. Both man and help from within vi told me to use .vimrc instead. That's what I had tried. Still what I don't understand that I had not needed a .virc at all before the last update to the "vi" package.

Offline

#4 2008-11-06 13:17:53

jordz
Member
Registered: 2006-02-01
Posts: 248

Re: vi creating backups by default since 7.2.25-1

I also noticed that vim now makes backups by default.

Offline

#5 2008-11-06 16:35:54

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: vi creating backups by default since 7.2.25-1

I think what Aaron was saying is that "vi" uses ~/.virc and that "vim" uses ~/.vimrc.


thayer williams ~ cinderwick.ca

Offline

Board footer

Powered by FluxBB