tag:blogger.com,1999:blog-5710137.post4919869457246515442..comments2023-11-29T18:18:34.148+10:00Comments on Explorer Street: How to get rid of Vim's temp filesJameshttp://www.blogger.com/profile/13957835772322921101noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-5710137.post-88895007269673538052013-02-17T14:05:26.769+10:002013-02-17T14:05:26.769+10:00Hi Anthony, glad that it was a help.
James.Hi Anthony, glad that it was a help.<br />James.Jameshttps://www.blogger.com/profile/13957835772322921101noreply@blogger.comtag:blogger.com,1999:blog-5710137.post-52275632782995192142013-02-17T10:18:25.012+10:002013-02-17T10:18:25.012+10:00Hey James, even 4 and a half years after you poste...Hey James, even 4 and a half years after you posted this, you have helped me resolve this issue.<br /><br />Just wanted to note, for any future readers of this post, if you are hesitant to use the temp folder, what I did was I simply created a folder in my main programming directory called "backup" and set all of my backups to be saved to there. That way they are all there, easily accessible if I ever need them.<br /><br />This saves me much annoyance, as when I go to compile/open/etc a file in a terminal and use "tab" to quickly fill in the rest of the name of the file (instead of explicitly typing it out), I don't get a "Did you mean .c or .~c" message anymore.<br /><br /><br />Anyways, just wanted to say thanks for posting this solution!Anonymoushttps://www.blogger.com/profile/11502625927198465363noreply@blogger.comtag:blogger.com,1999:blog-5710137.post-24134879034023618812010-09-30T08:12:58.977+10:002010-09-30T08:12:58.977+10:00Those backup files are a PITA. I'm tired of ha...Those backup files are a PITA. I'm tired of having to delete them. With version control they are totally useless. Thanks for the help everyone.JamesAnoreply@blogger.comtag:blogger.com,1999:blog-5710137.post-62778041129401004782010-09-16T01:05:51.992+10:002010-09-16T01:05:51.992+10:00you must also do 'set nowritebackup' or it...you must also do 'set nowritebackup' or it will still write backup files.Randyhttps://www.blogger.com/profile/04137355181400112600noreply@blogger.comtag:blogger.com,1999:blog-5710137.post-10309531690960897142009-08-20T07:22:45.886+10:002009-08-20T07:22:45.886+10:00@Lawrence, that does not always work. The original...@Lawrence, that does not always work. The original post is correct.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5710137.post-44810847150156331362009-01-25T18:07:00.000+10:002009-01-25T18:07:00.000+10:00just add:set nobackupto your vimrc files...just add:<BR/><BR/>set nobackup<BR/><BR/>to your vimrc files...Unknownhttps://www.blogger.com/profile/17184288014151508420noreply@blogger.comtag:blogger.com,1999:blog-5710137.post-23264791720704049332008-10-28T11:55:00.000+10:002008-10-28T11:55:00.000+10:00Hi Clinton, thanks for the feedback. I'm using Su...Hi Clinton, thanks for the feedback. <BR/><BR/>I'm using Subversion. It's not for code, just for the text files containing my phd writing, and i'm using it in a pretty basic way. <BR/><BR/>i just use <BR/><BR/>svn add *<BR/>svn commit -m ""<BR/><BR/>to get all the changes in there.<BR/><BR/>you'd think that I could tell it to just use <BR/><BR/>svn add *.txt<BR/>and <BR/>svn commit *.txt -m ""<BR/><BR/>but IIRC that also adds the tilde files for some reason. <BR/><BR/>Regarding the temp directory, I guess I'd seen that as safe as any other directory... it's contents never seem to get deleted by anything other than me.. or would there be something I'm missing?<BR/><BR/>BTW, I got a copy of that book Structures recently and started reading it... seems quite good.Jameshttps://www.blogger.com/profile/13957835772322921101noreply@blogger.comtag:blogger.com,1999:blog-5710137.post-9888081236215824872008-10-28T07:47:00.000+10:002008-10-28T07:47:00.000+10:00What crappy version control system are you using?t...What crappy version control system are you using?<BR/><BR/>tilde files have mean `backup' on systems for decades now, everything knows to ignore them.<BR/><BR/>I would advise you to at least put the backups in somewhere more useful than temp; if you use vi outside your version control system one day and just happen to need that backup file, you'll want it outside of temp.Clinton Royhttps://www.blogger.com/profile/05864377257947973147noreply@blogger.com