On Thu, 19 Oct 2006 at 3:15pm, Yegappan Lakshmanan wrote:

> Hi Yakov,
>
> On 10/19/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> > I'd like to cache some information about file, into
> > b:variables, and be able to check in my function,
> > whether buffer changed in any way between 2 calls
> > to the function. Is there any "change counter" that I can
> > store and compare later to detect the buffer change (any
> > change like any insertion, deletion, undo, redo, file was re-read from
disk) ?
> >
> > I though about using  &modified but it does not work. If file
> > was modified and saved, then &modified is off and I don't detect
> > anything.
> >
>
> You can try using the b:changedtick variable or the changenr() function.
>
>   :help b:changedtick-variable
>   :help changenr()
>
> - Yegappan

Right on what Yakov wants. I think diffing eval.txt with that of vim6
will reveal several hidden gems.

-- 
Thanks,
Hari

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to