Hi all
No one has mentioned the feedkeys() work-around (ahem, swallow) for
this, if you want periodic events. For example,
function! Timer()
echo strftime("%c")
let K_IGNORE = "\x80\xFD\x35" " internal key code that is ignored
call feedkeys(K_IGNORE)
endfunction
au CursorHold,CursorHoldI * :call Timer()
turns vim into a clock. It doesn't work in visual, command, and
operator pending mode. I use it as a tail -f viewer (replace the echo
with checktime | normal G) for log files I want to have syntax
highlighted, a practice I find really helpful.
Regards, John Little