Thursday, January 2, 2014

Re: Recovering data after massive deletions

On Thursday, January 2, 2014 8:44:41 AM UTC-6, Eric Smith wrote:
> Due to a faulty keyboard, an `x' was sent repeatedly to the
>
> terminal with a file open in vim.
>
> The large file was reduced to a few lines as a result.
>
>
>
> I have salvaged some data from backups and the screen buffer. I
>
> thought that I could recover the balance from vim's undo
>
> buffer. However, I am not able to access more data through g- and g+.
>
> They report "You are already at the earliest/latest version"
>
> respectively."
>
>
>
> Also this message;
>
> Swap file ".guys.swp" already exists! "guys" 4L, 70C E825: Corrupted undo file (num_head): /home/ eric/.guys.un~
>
>
>
> And when executing undotree(), this alert;
>
> E731: using Dictionary as a String
>
>
>
> Is there anything worth trying to recover data before giving up?
>

Well you didn't mention how you tried using the return result of undotree(), but there are at least four plugins useful for viewing your undo history. See http://vim.wikia.com/wiki/Using_undo_branches#Plugins

But if you somehow exited Vim without saving, I think the undo information you're looking for may be lost, especially with that E825 message.

:help E825 says:

*E825* The undo file does not contain valid contents and cannot be used.

--
--
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/groups/opt_out.

No comments: