Link to home
Start Free TrialLog in
Avatar of brainarm38802
brainarm38802

asked on

vi adding ~ after filename

I am using Mandrake Linux 9.  I have vim installed.  For some reason when I edit a pre-existing file, it (when I save and exit) creates a duplicate file with the same name, but with a ~ (tilda) at the end (Ex. "filename.html~").  

This is annoying because I dont want a ton of "filename.html~" files in my apache document root.  

I suspect it is something with the way vim is configured, but I do not know, any suggestions?

Matthew Brainard
brainarm@insight.rr.com
Avatar of akshayxx
akshayxx
Flag of United States of America image

it is for ur benefit only .. it is the bakup file .. if ur system crashes while ur in the middle of editing.. u can retrieve the old file from the backed up file..
ASKER CERTIFIED SOLUTION
Avatar of akshayxx
akshayxx
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
read all the options ..
backup
backupcopy
backupdir
backupnext
backupskip
Avatar of brainarm38802
brainarm38802

ASKER

Your answer wasnt direct... but from what you gave me, I was able to turn it off.  

For future reference for anyone else:
if you edit the /usr/share/vim/vimrc file, you can disable backup if you want.