Yasuhiro Matsumoto wrote:

> > I'm not sure if InsertCharPre should apply when the popup menu is
> > visible, keys mean something else then.  Perhaps we would need another
> > event for that sitiuation?
> >
> No. I think that it can avoid to insert 'f' with checking pumvisible() while 
> popup menu is shown.
> 
> autocmd InsertCharPre * let v:char = pumvisible() ? v:char : 'f'

The question is if plugin authors that use InsertCharPre are aware of
the possibility that the event will be triggered in other circumstances
than typing text to be inserted.

-- 
>From "know your smileys":
 :'-D   Laughing so much that they're crying

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui