Re: timer revisited

2007-02-06 Thread Yukihiro Nakadaira

In Vim7 feedkeys() can be used.

autocmd CursorHold * call Timer()
function! Timer()
 echo strftime(%c)
 let K_IGNORE = \x80\xFD\x35internal key code that is ignored
 call feedkeys(K_IGNORE)
endfunction

--
Yukihiro Nakadaira - [EMAIL PROTECTED]


timer revisited

2007-02-05 Thread John Doe
Well, I am so happy I can post here again (I've been
shut out for about 1/2 year for no apparent reason).
So I need to catch up with the question backlog.

I used to be able to conjure regenerating timer events
in vim 6.4 like this:

   here's a nice workaround for a regenerative
CursorHold event, suggested by
   Antony Scriven
au CursorHold * exe norm! r\ESC | call
SIDTimerEvent()

the norm r \ESC kludge used to simulate a keypress
to vim 6.4 (both on linux and win32) so that the event
was regenerated after the usual 5 seconds or so. Not
so anymore! I cannot get regenerating timer events in
vim anymore and the only way I can think of getting
around this is:

1. vote for special Timer events addon and pay for it
2. get a new kludge from you folks

I don't know if option 1 is viable BTW. Please, a new
kludge, you'll get recognition in my script.


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com