LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-19-2006, 11:05 AM   #1
18thBronzeman
LQ Newbie
 
Registered: Oct 2006
Distribution: slackware
Posts: 18

Rep: Reputation: 0
vim creates extra file (*.*~) on exit with :wq


while working in vim when i created a file and exited with ':wq' an extra file was created with my_file_name~. i tested this and it does not occur if i exit with a series of commands like ':w', ':q'. does anyone know the reason for this? thanks in advance!
 
Old 12-19-2006, 11:23 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
The ~ files are backups. If like me you are fed up with them being left in all your dirs you can turn backups off or have them put in a special backup dir. Both configurable in ~/.vimrc:

Code:
set backup      " keep a backup file
set backupdir=$HOME/.vimbak
or

Code:
set nobackup        " do not keep a backup file, use versions instead
 
Old 12-19-2006, 11:25 AM   #3
18thBronzeman
LQ Newbie
 
Registered: Oct 2006
Distribution: slackware
Posts: 18

Original Poster
Rep: Reputation: 0
thanks dive!
 
  


Reply



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
LXer: Piracy creates jobs, FOSS creates opportunities LXer Syndicated Linux News 0 11-02-2006 11:33 AM
What file system for an extra harddisk ? Babe963 Linux - Hardware 1 09-16-2006 03:55 AM
Extra data from media file General Programming 1 07-03-2006 09:08 PM
Mounting windows xp file system, creates mnt point, however, cant read files in share cmd0a0 Linux - Networking 10 04-16-2005 12:28 AM
ez way to find the process that creates a file? Griffon26 Linux - General 2 08-20-2002 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:32 PM.

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
Open Source Consulting | Domain Registration