?
Solved

vi adding ~ after filename

Posted on 2003-03-06
4
Medium Priority
?
269 Views
Last Modified: 2013-12-15
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
0
Comment
Question by:brainarm38802
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 8

Expert Comment

by:akshayxx
ID: 8085646
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..
0
 
LVL 8

Accepted Solution

by:
akshayxx earned 75 total points
ID: 8085656
0
 
LVL 8

Expert Comment

by:akshayxx
ID: 8085664
read all the options ..
backup
backupcopy
backupdir
backupnext
backupskip
0
 

Author Comment

by:brainarm38802
ID: 8085743
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.  
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question