Hari Krishna Dara wrote:
> I am using :startinsert! from my plugin to put the user in insert mode,
> but if the user doesn't type anything for 'updatetime' after this, no
> CursorHoldI event is generated. I tried doing an explicit :doauto right
> after :startinsert!, but Vim ignores it, probably because the command
> only schedules for an insert mode (doesn't immediate change it).
>
> Note that the CursorMovedI gets triggered correctly in this case, but I
> don't want to use that as I don't want to know about every character
> that user types, but only when the user is holding.
>
> Any suggestions for a workaround?
>
> I have Vim7 upto the patch 146.
It works just fine for me. After typing "i" and waiting a little while
the CursorHoldI event is triggered. I used this:
au! CursorHoldI * echomsg 'hi' | sleep 2
--
I AM THANKFUL...
...for the clothes that fit a little too snug because it
means I have more than enough to eat.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///