Solved

A vi question on Linux Mandrake 8.2

Posted on 2002-06-12
3
214 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
[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
  • 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 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