Thursday, January 2, 2014

Re: Recovering data after massive deletions

On Thursday, January 2, 2014 5:08:03 PM UTC-6, Eric Smith wrote:
> I fear there is a misconfiguration as I get this E731: error
>
> message even when starting a fresh vim session and then exacting
>
> undotree() after some editing. So seems to be a general issue with my
>
> vim config and not only of the session in questions.
>

More likely you're using it wrong. undotree() actually does return a dictionary, not a string. So you can't do this:

:echo "undo tree is: ".undotree()

You should be able to do this, but it won't tell you very much without some heavy-duty parsing:

:echo string(undotree())

That's where the undo plugins come in.

You can try making sure the file is saved in its current state, making sure the undo file is written, then installing one of those plugins and starting a new Vim instance to edit the file. Ignore the swap exists error, you can always quit without saving in the new Vim. Then you should be able to navigate through your undo information more easily.

--
--
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:

Post a Comment