Ben

These are very interesting. I will explore some more.

I like that it works on the undo tree because I have autosave on so
the diff modules do not see behind the last file save.

I also have very large files that have been edited daily for years
(I never liked databases) and of course I have persistent undo set.

What I would like is some command (better even outside the editor from 
the command line) that prints just the last edits say in 5 minute 
blocks or undo tree branches or whatever.

Just the edit text without any diff syntactic sugar.

-- 
- Eric Smith
Ben Fritz said:
> 
> 
> On Jul 27, 7:01 am, Arthur Lee <[email protected]> wrote:
> > On Wednesday, July 27, 2011 at 7:43 PM, Eric Smith wrote:
> > > Is it possible to access the text added to a document within the last
> > > n seconds?
> >
> > > So I want the effect of this;
> > > If I did a checkin to version control periodically, and then I produced a 
> > > diff
> > > for each period I was interested in.
> >
> > > (I am more interested in the added text than changed text, but this is
> > > not an important point.)
> >
> >
> > How about this script?  diffchanges.vim
> >
> > description
> > Show changes made to current buffer since the last save. This plugin is 
> > based from an example in the Hacking Vim book. The differences are that 
> > this functionality is in the form of a plugin, is a bit more robust, and 
> > can be toggled.
> >
> > Link:
> >
> > http://www.vim.org/scripts/script.php?script_id=2158
> >
> 
> The histwin.vim plugin ( http://www.vim.org/scripts/script.php?script_id=2932
> ) provides the ability to diff with any arbitrary point in Vim's "undo
> tree" for the buffer. If you've enabled persistent undo, this is VERY
> powerful. This feature is the main reason I've kept it around, since
> I've mostly switched to Gundo ( 
> http://www.vim.org/scripts/script.php?script_id=3304
> ), though it's also useful for systems which do not have python
> installed.
> 
> See http://vim.wikia.com/wiki/Using_undo_branches if you don't use
> Vim's undo history yet. Both these plugins (Gundo especially) make it
> actually easy to work with.
> 
> -- 
> 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 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

Reply via email to