There is a CompleteDone
and MenuPopup
event. However, I can't find an event for the triggering of the insert mode completion popup menu. So if I want to do something when triggering the completion popup menu, what should I do?
Since when navigating fast through a long long completion popup menu the menu usually flickers, I want to disable cursorline
and cursorcolumn
when I am navigating it in order to get a better performance. After the completion done, I can enable cursorline
and cursorcolumn
again using the CompletionDone
event.
If there isn't any event for this, can I at least make the cursorcolumn
still when I am navigating the completion menu? Now the highlighted cursor column will change all the time when I am navigating the menu.
Thanks very much!
One more question: is there any way to detect <C-e>
and <C-y>
, that is when the screen is scrolling? For now, I will disable cursorline
when CursorMoved
is triggered. But <C-e>
and <C-y>
sometimes won't trigger the CursorMoved
event.
UPDATE: These are all the plugins that I have installed:
Plugin 'VundleVim/Vundle.vim'
Plugin 'gtags.vim'
Plugin 'tpope/vim-surround'
Plugin 'closetag.vim'
Plugin 'majutsushi/tagbar'
Plugin 'Yggdroot/LeaderF'