Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 12-19-2006, 11:05 AM   #1
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
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,390

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:

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

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

Original Poster
Rep: Reputation: 0
thanks dive!


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
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 > Forums > Linux Forums > Linux - Desktop

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration