Closed ysheng26 closed 11 years ago
It is feature. Because "longest" completeopt conflicts with auto completion. To use "longest" option, you must disable auto completion. "longest" is good feature. But it is for manual completion only.
But I need the "longest" option when using omni complete (I mean when neocomplete refer to some omni complete backend)? Is there a way?
Nothing. I don't recommend to use it.
In my case, it's vim-clang and I've figured out how to do it: vim-clang provides options g:clang_cpp_completeopt
and g:clang_c_completeopt
. Just set it there. So it seems that it's the job of the omni-completion provider to support it.
I wrote
set completeopt=longest,menu
in my.vimrc
but as soon as neocomplcache works, completeopt's value will be changed by:
set completeopt-=menu
set completeopt-=longest
set completeopt+=menuone
which is located inautoload/neocomplcache/handler.vim
Line182
And I really do miss the
longest
option:)