Saturday, March 27, 2010

Re: K_IGNORE trick (periodic execution)

Hi Yakov!

On Fr, 26 Mär 2010, Yakov wrote:

> There is trick for periodic execution, involving K_IGNORE and feedkeys
> [1].
> In the lastest vim 7.2.141, I cannot make it to work anymore.
> Timer() is executed only once, as seen from 'echo strftime' printout.
> Can anybody confirm this ? Am I missing some global setting ?
> 'updatetime' is set to 200.
>
> autocmd CursorHold * call Timer()
> function! Timer()
> let K_IGNORE = "\x80\xFD\x35" " internal key code that is ignored
> call feedkeys(K_IGNORE)
> echo strftime("%c") " this for debugging
> endfunction

I noticed that too when experimenting with this.
http://groups.google.com/group/vim_use/msg/34fafea1d489cc62
(and this with Windows vim vesion 7.2.330(?) not sure right now)

regards,
Christian

--
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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments:

Post a Comment