LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2010, 08:05 AM   #1
Asido
Member
 
Registered: Jan 2010
Location: Denmark
Distribution: Gentoo, Archlinux, FreeBSD, Slackware
Posts: 84

Rep: Reputation: 24
all those *~ files


I was thinking, how to disable backup files? It is kinda annoying when editing lot of files and I personally see no point having them.

Last edited by Asido; 04-25-2010 at 09:16 AM.
 
Old 04-25-2010, 08:08 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could run a cronjob to delete them.
 
Old 04-25-2010, 08:15 AM   #3
Asido
Member
 
Registered: Jan 2010
Location: Denmark
Distribution: Gentoo, Archlinux, FreeBSD, Slackware
Posts: 84

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by repo View Post
You could run a cronjob to delete them.
Yes, it can be deleted with one command, but since I have never used them, I thought, is it possible to disable them?
 
Old 04-25-2010, 08:27 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,293

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
It would help to know which editor you are using. I would guess emacs from the file pattern.
 
Old 04-25-2010, 08:27 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Depends from which editor they come from.
Did you looked in the preferences?
In kwrite you can disable "backup on save".
 
Old 04-25-2010, 08:40 AM   #6
Asido
Member
 
Registered: Jan 2010
Location: Denmark
Distribution: Gentoo, Archlinux, FreeBSD, Slackware
Posts: 84

Original Poster
Rep: Reputation: 24
I use GVIM mostly.

Quote:
Originally Posted by repo View Post
Depends from which editor they come from.
Did you looked in the preferences?
In kwrite you can disable "backup on save".
Aha, found such option in KWrite, but don't see in GVIM nor Emacs

Last edited by Asido; 04-25-2010 at 08:45 AM.
 
Old 04-25-2010, 08:51 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196
For vim (and Gvim?) try adding set nobackup to ~/.vimrc
 
1 members found this post helpful.
Old 04-25-2010, 09:15 AM   #8
Asido
Member
 
Registered: Jan 2010
Location: Denmark
Distribution: Gentoo, Archlinux, FreeBSD, Slackware
Posts: 84

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by catkin View Post
For vim (and Gvim?) try adding set nobackup to ~/.vimrc
That helped. Thanks!
 
Old 04-25-2010, 10:03 AM   #9
modprob
Member
 
Registered: Jul 2009
Location: Montreal
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
Those backups could be handy. Why not tell vim to save them in a special folder?

I created a .vim-backups directory and set the option in the .vimrc

Code:
set backupdir=~/.vim-backups
 
3 members found this post helpful.
Old 04-25-2010, 12:30 PM   #10
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,293

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
For emacs, M-x customize-variable make-backup-files

For many editors, you can tell them to not make backup files when the original file is under version control.
 
Old 04-25-2010, 02:59 PM   #11
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,124

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by modprob View Post
Those backups could be handy. Why not tell vim to save them in a special folder?

I created a .vim-backups directory and set the option in the .vimrc

Code:
set backupdir=~/.vim-backups
Awesome! I didn't know about that feature. This will come in handy.
 
Old 04-25-2010, 03:17 PM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,382

Rep: Reputation: Disabled
+1 for that.
 
  


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
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 09:52 PM
in copy files or ls files the command want to invert select some files how to?? hocheetiong Linux - Newbie 3 06-27-2008 06:32 AM
problem in mounting cdrom(audio files running but not reading data files) amit_usual Linux - Newbie 7 12-29-2007 05:52 AM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:03 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