LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hi,
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, 09:39 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 371

Rep: Reputation: 40
Question

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, 10:21 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

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

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


Reply


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 11:09 PM
saving files in vi tekmorph Linux - Newbie 4 09-01-2004 11:36 PM
saving log files / spliting ethernet without a router w/ linux aarond Linux - Security 2 07-31-2004 03:34 PM
Problem saving files on Samba / W2000 server heberle Linux - Networking 7 05-14-2004 05:40 AM
Saving files Ren Red Hat 2 01-09-2004 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

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