Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

neocomplecache will change external completeopt vaule #453

Closed ysheng26 closed 11 years ago

ysheng26 commented 11 years ago

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 in autoload/neocomplcache/handler.vim Line182

And I really do miss the longest option:)

Shougo commented 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.

kawing-chiu commented 8 years ago

But I need the "longest" option when using omni complete (I mean when neocomplete refer to some omni complete backend)? Is there a way?

Shougo commented 8 years ago

Nothing. I don't recommend to use it.

kawing-chiu commented 8 years ago

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.