Wednesday, October 30, 2013

Re: Vim persistent undo

On 28 October 2013, erdogan.kerem <dzy689@gmail.com> wrote:
> Hi,
>
> I just enabled persistent undo in vim, but realized that before turning on
> persistent undo, it was occasionally useful debugging for me to undo my
> changes until when I first opened the file, then play them back to see if I
> had made any unintended changes. With persistent undo, however, I'm not sure
> how to know when I get back to the state in which I first opened the file.
> Does anyone have any ideas on how to find this out with persistent undo
> enabled?

You might consider taking a look at Gundo:

https://github.com/sjl/gundo.vim

Gundo needs Python, and Python support in Vim. There are a
few other similar plugins written in pure VimL (f.i. undotree, see
https://github.com/mbbill/undotree), but in my experience all of them
have other shortcomings.

/lcd

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