Mr. Yikihiro Nakadaira supplied the following to the list a couple
months ago.....
<SNIP>
In Vim7 feedkeys() can be used.
autocmd CursorHold * call Timer()
function! Timer()
echo strftime("%c")
let K_IGNORE = "\x80\xFD\x35" " internal key code that is ignored
call feedkeys(K_IGNORE)
endfunction
</SNIP>
... this pretty much simulates a timed event when you leave the keyboard and
let vim run. Between this and CursorMoved perhaps you can accomplish what you
want
-dan
On Wed, 4 Apr 2007, Chuck Mason wrote:
>
> Doc states, "Not re-triggered until the user has pressed a key (i.e.
> doesn't fire every 'updatetime' ms if you leave Vim to make some coffee.
> :)"
>
> So this isn't going to work. How do I put in a feature request for an
> autocmd that is trigged every 'repeattime' repeatedly?
>
> Chuck
>
>
> -----Original Message-----
> From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 04, 2007 1:42 PM
> To: Chuck Mason
> Cc: Yakov Lerner; [email protected]
> Subject: Re: Executing vimfunctions in background
>
> Chuck Mason wrote:
> > Well, that sample 'myFunc' was just that- a sample. Imagine now, that
> it
> > doesn't depend on cursor location but on a daemon running on your
> > system.
> >
> > Chuck
>
> There are also the CursorHold and CursorHoldI autocommands (q.v.), which
> are
> triggered _once_ when the keyboard has been idle for 'updatetime'
> milliseconds
> (4000 by default).
>
>
> Best regards,
> Tony.
> --
> "The National Association of Theater Concessionaires reported that in
> 1986, 60% of all candy sold in movie theaters was sold to Roger Ebert."
> -- D. Letterman
>