News for hackers. Stuff that matters.
Re:How I boosted my Vim by hasenj on Monday September 13, 2010 @04:35PM (#1688128)
so far, swap files have caused me more headache than anything else. I'm a paranoid maniac and I save every minute or two, so worst case I'll repeat a minute worth of coding.

What really ends up happening is I try to edit a file and something annoying pops up telling me about something requiring my attention (swap file already exists .. read only mode .. bla bla). In other words, it's just a distraction, most of the time.

Re:How I boosted my Vim by gfodor on Monday September 13, 2010 @04:37PM (#1688147)
Until it saves your ass. Which will happen, if you use vim for a few years.

You can configure it to put your swap files in a canonical dir, instead of polluting the directory you're editing files in:

set backupdir=/var/tmp,/tmp

set directory=/var/tmp,/tmp

Now you can just nuke the swap files in one swoop:

rm -rf /var/tmp/*.swp

Re:How I boosted my Vim by jamesbritt on Monday September 13, 2010 @05:02PM (#1688292)
Or cron-job the pruning.
Re:How I boosted my Vim by bostonvaulter2 on Tuesday September 14, 2010 @04:59AM (#1689956)
Swap files can save you from editing the same file in two vim instanstances as once. Possibly overwriting each other.