Hi Mun!

On Di, 17 Nov 2009, Mun wrote:

> I have been using the Persistent Undo patch for several months now and I
> have a general comment regarding it's usability.  Jordan and I had a
> private conversation about this a while back, and he requested I post
> something to the list so as to provide a broader audience for feedback.
> 
> Note that I have set the 'undofile' option in my .vimrc because I don't
> want to have to remember to use :wundo .
> 
> Often times I need to make a _temporary_ change to a file; so I make the
> change and save it without exiting.  After doing whatever I need to with
> the altered file I generally want to quickly revert back to the
> "original" file (i.e., back to the file contents as they were prior to
> the *current* editing session).  In the past, I would do something like
> "1000u" and then save it and exit.  But with undofile set, if an
> undofile exits and is applicable, the saved edits will be undone as
> well.  Of course, this is by design.  But I would prefer an easy way to
> undo everything up to the point of reading the undofile while keeping
> "set undofile" specified in my .vimrc .

Wouldn't that be a perfect use case for undo_branches? With the plugin 
undo_tags¹ you can tag a certain state and revert to that branch 
whenever you like.


¹)http://www.vim.org/scripts/script.php?script_id=1997

regards,
Christian
-- 
:wq

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui