Solved

A vi question on Linux Mandrake 8.2

Posted on 2002-06-12
3
210 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now