I noticed a case where the popup menu sticks around after I enter
Command-Line mode. I type (in Insert mode)
fee fie fo fum
f<C-P><Esc>:
and I get the completion fum (since that is in my text so far) with
the popup menu, and the menu is still there until I leave Command-Line
mode. If I wait a second after the <Esc> before typing the :, there is
no problem.
I narrowed this down. (Someone, please pat me on the back for this
job. I had to sort through a bunch of plugins to narrow it down to my
ftplugin/mail.vim and the matchparen plugin before I got this!) It
seems to depend on 'lazyredraw' and the CursorMoved,CursorMovedI
autocommand events. Just source the following lines and try the
experiment above:
set nocp
setlocal lazyredraw
let s:nop = 0
autocmd! CursorMoved,CursorMovedI * let s:nop += + 1
Yes, it works with -u NONE.
It may depend on having an xterm-like terminal, so that <Esc>
triggers a delay ('timeoutlen' or something like that). I use
gnome-terminal (but I do not compile with Gnome support, just GTK2).
--Benji Fisher