Solved

A vi question on Linux Mandrake 8.2

Posted on 2002-06-12
3
212 Views
Last Modified: 2013-12-13
I'm using the vi editor on Linux Mandrake 8.2. Every time I save the file, it creates another file, named myfile~ by adding a ~ after the filename.
But I don't want to have this extra backup file created automatically by vi. I'm tired of deleting it all the time.
How can I setup vi so that it does not create such files?

Stephane
0
Comment
Question by:stephaneeybert
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
ThePunisher earned 50 total points
ID: 7074838
try locating a file called .vimrc.  It may be in your home directory.  This file sets all the options for your editor.  Comment out the backup line and this should fix your problem.
0
 

Author Comment

by:stephaneeybert
ID: 7075022
I just have a .viminfo file, which contains the history of the editing. I can't find a resource file for vi.
0
 

Author Comment

by:stephaneeybert
ID: 7075035
I created a file named .vimrc in my home directory, and now it works fine! Thanks!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
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…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

805 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