The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM


Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
IBM Creates New Power, SMB Server Divisions - IT Jungle iBot UNIX and Linux RSS News 0 07-23-2007 03:00 PM
gVim on Windows milhan Windows & DOS: Issues & Discussions 3 02-08-2007 04:34 PM
Strange IP traffic behavior when using Samba and FTP (Windows/Mac to Linux) perspectx UNIX for Advanced & Expert Users 1 03-02-2005 03:18 PM
Flaw leaves Linux computers vulnerable killerserv News, Links, Events and Announcements 3 04-08-2002 09:33 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-27-2008
Registered User
 

Join Date: Feb 2008
Location: Utah
Posts: 3
Question gVim creates and leaves strange tilde ~ files in Windows

Hey folks,

I have used gVim in Windows for many years but I have never found an answer to a very simple question I am going to ask you guys...

My question is if there is a way to eliminate the creation of those ~ files that gVim creates in Windows. If you have ever used gVim in Windows you probably noticed that gVim creates a file with the same name as the one you were editing except tacks a tilde (sp?) "~" to the end...

Meaning if I were to edit the file "example.txt" gVim creates a file "example.txt~" and puts it in the same directory (as the original). I would not mind this if the file were deleted after I close gVim, but the file remains even after I close gVim. (I can open these "tilde files" and the appear to be just like the originals.)

Anyone know how to prevent the file from being created or how to have gVim automatically delete it when the editing is done?

Thanks a million!
Reply With Quote
Forum Sponsor
  #2  
Old 02-27-2008
Registered User
 

Join Date: Feb 2008
Location: Utah
Posts: 3
I tried setting

set nobackup

in the startup settings file "_vimrc" (Menu > Edit > Startup Settings) but I still get the tilde files!
Reply With Quote
  #3  
Old 02-27-2008
Registered User
 

Join Date: Feb 2008
Location: Utah
Posts: 3
Eureka! I THINK I got it...

I had to make sure the the line / setting:

set nobackup

was placed AFTER the lines

source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim

once I did that (and opened files,) file backups were no longer created.

I guess I could have answered my own question without posting here, but maybe this post will help some other gVim (in Windows) user out there.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0