Loading ...
Sorry, an error occurred while loading the content.

Re: vim crash recovery - how to deal with all those swps?

Expand Messages
  • Benjamin Fritz
    ... If you have trouble finding where Vim puts all of its temp files, you might be interested in this tip:
    Message 1 of 8 , Feb 29, 2008
    • 0 Attachment
      On 2/29/08, Jeffrey 'jf' Lim <jfs.world@...> wrote:
      >
      > On Fri, Feb 29, 2008 at 10:16 PM, Keflavich <keflavich@...> wrote:
      > >
      > > Well, first the witty quip: I thought macs were stable. They are
      > > not. Even my Ubuntu laptop - which I crashed at least weekly - had
      > > better uptime than my macbook with 10.5.2 on it.
      > >
      >
      >
      > :) pls. The mac more uptime than Linux (/Ubuntu)? :)
      >
      >
      >
      > > So the find solution works, but it's pretty ugly / risky. There's
      > > nothing internal to VIM that can control its behavior with regard to
      > > swap files it finds?
      >
      > > Aside - does the locate command update when .swp
      > > files are created, or will it typically miss them? Saves some search
      > > time if the former.
      > >
      >
      >
      > 'locate' only updates periodically (depending on your system - but
      > typically weekly), and will definitely miss stuff (or even find stuff
      > that is already gone!). If you want to be truly "live", use find.
      >
      >
      >
      > > I like the set dir= (not .) option, I might give that one a shot.
      > >
      >
      >
      > yeah, that option does kind of appeal to me as well...
      >
      >
      > -jf
      >

      If you have trouble finding where Vim puts all of its temp files, you
      might be interested in this tip:

      http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file

      It's one solution, anyway!

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.