Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-22-2008, 03:22 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
problem saving files in pc linux os

I have a strange problem in pc linux os. Whenever I modify and save a file, it automatically creates a backup and saves the file. e.g if I modify test.txt and save it using vim, 2 files are seen -> test.txt and test.txt~
The next time I modify and save, an additional test.txt~~ is created. How do I get rid of the problem?? I am using the default KDE Desktop environment provided with pc linux os.
Old 01-22-2008, 08:39 PM   #2
Registered: Apr 2007
Location: 中国上海
Distribution: Lubuntu 16.04 LTS
Posts: 372

Rep: Reputation: 40

i don't think there is a way to turn that feature off, even though it is strange that it creates more than one backup file. Just delete them when you see them, my desktop is loaded with those files, but they can be helpful for undoing accidental changes.
Old 01-22-2008, 09:21 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
To turn off the backups, add these two lines to ~/.vimrc:
:set nobackup
:set nowritebackup
For more info, start vim. In command mode, enter this
:help backup
Old 01-25-2008, 09:46 AM   #4
LQ Newbie
Registered: Jan 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thanx problem solved..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving files rj686 Linux - Software 4 10-07-2004 10:09 PM
saving files in vi tekmorph Linux - Newbie 4 09-01-2004 10:36 PM
saving log files / spliting ethernet without a router w/ linux aarond Linux - Security 2 07-31-2004 02:34 PM
Problem saving files on Samba / W2000 server heberle Linux - Networking 7 05-14-2004 04:40 AM
Saving files Ren Red Hat 2 01-09-2004 05:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration