Vim's popup menu is a very cool and modern feature. However, if the list is very long (such as completion) and I keep pressing <C-N> to navigate through the menu quickly, the popup menu will flash to refresh the content, which is sometimes a little dizzy.So what may be the cause? Is this a limit of the terminal or is there any plugin which make Vim inefficient?Thanks very much!
How to avoid obvious flash of the popup menu when navigating quickly?
vimrc
I think this is an issue with Vim itself. When exploring the popup menu with Ctrl-N or Ctrl-P, Vim replaces your text with the highlighted item, which implies switching back-and-forth between the menu and the window behind it. You can bypass the issue by using the up and down arrows instead of Ctrl-P and Ctr-N, because in that case Vim does not perform text replacement (but then you'll need to press Enter to accept the highlighted item). Personally, I dislike the arrow keys so I use remappings to avoid them; for example:inoremap <expr> n pumvisible() ? \<Down> : ninoremap <expr> p pumvisible() ? \<Up> : p