Friday, July 17, 2015

Re: vim (MacVim) locked up

> On Jul 17, 2015, at 9:30 AM, Tim Chase <vim@tim.thechases.com> wrote:
>
> On 2015-07-17 09:05, Eric Weir wrote:
>> For the first time ever, vim has locked up on me. It seems my only
>> option is to quit without saving.
>>
>> Is there anyway I can get to the unsaved buffers to save them
>> outside vim?
>
> You might have some ".swp" or "_.swp" files around, either in
> your working-directory, your home-directory, or in your $TMP
> directory. I don't remember exactly where they get stashed, but I
> think the default is in the same directory you were working in (your
> current working directory). The last letter decrements if you have
> multiple buffers, so you'd want to look for "*.sw[a-p]" You can get
> Vim to try and recover it with
>
> vim -r .swp
> vim -r .swo
> vim -r .swn
>
> writing each one where you want it, and then optionally deleting the
> swap file once you've recovered what was available.

Thanks, Tim. Before I got your reply I located the swap file and copied it into TextEditor. It would've been better to have done your way. The text in the swap file was in the order it was entered—most recent at the top—and I had to reformat it. It would almost have been quicker to retype it.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net

"What does it mean...that the world is so beautiful?"

- Mary Oliver








--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment