Yakov Lerner wrote:

> > When the CursorHold autocommand triggers it puts a keycode in the input
> > buffer.  A half-typed command will be ended by this, possibly by with an
> > error (beep/flash).
> 
> I don't understand your explanation, Bram. If your explanation were
> valid, then *any* 'au CursorHold' would cancel multi-key commands like gg.
> 
> But this is not the case. Simple assignmet 'let foo=xyz' in 'au CursorHold'
> does not cause multi-key-commands-cancelation.

Yes it does.  Try ":au Cursorhold * let foo = 'xyz'" and then typing one
"g".  It's cancelled with a beep as soon as the Cursorhold event is
triggered.  But only when you didn't type anything since the last time.
When you set 'updatetime' to 200 and wait more than 0.2 seconds after
moving the cursor before typing the "g" then the event will already been
triggered and you keep the "g".

-- 
hundred-and-one symptoms of being an internet addict:
263. You have more e-mail addresses than shorts.

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

Reply via email to