Occasional Results Flicker
So I have noticed an interesting phenomena that seems to occur rather inconsistently. I've created a small video that shows the issue - essentially it appears that sometimes as I type out characters, the results flicker a bit, as if they go away and re-appear with updated results.
It would be nice if perhaps the results at least stuck around, even if they are not 100% accurate since I find the visual noise more annoying than anything.
It's a bug in Vim. There's a pull request which will, hopefully, be merged to address that problem. https://github.com/vim/vim/pull/517
I have checked your video. It seems completor.vim problem. Unfortunately, vim/vim#517 does not fix your problem.
completor.vim uses timer feature. If the completion is done when your popup is visible, it will be flick.
Note: deoplete does not have this problem.
Because deoplete checks pumvisible().
@Shougo does that mean this issue could be easily fixed here? Or would it be a major change?
It is not easy.
Because, pumvisible() works only in <expr> mappings.
The fix #61 should improve this problem. @amadeus
I would actually say since #61, the flickering has gotten worse. It now does it on every keystroke, when ideally it would never flicker at all, just update when new results have come in, even if it means the current ones are perhaps out of date?
I don't really know how completions work internally in Vim, so I can't say how easy or hard this is, but how it works in NeoComplete would definitely be the preferred experience if possible.
The fix #61 should improve this problem. @amadeus
It closes the popup when every key stroke like g:deoplete#enable_refresh_always.
Yes, the flicker will be worse. It is the accurate result though.