Closed skyegecko closed 8 years ago
let g:clang_c_completeopt = 'menuone,preview,noinsert'
let g:clang_cpp_completeopt = 'menuone,preview,noinsert'
Thank you, that works.
Is that option documented anywhere? I couldn't find it in the help file.
edit: actually it doesn't work. It seems that when opening the file, the first autocompletion will not fill the first result. Afterwards all completions are automatically filled, even with that option set.
edit2: some further troubleshooting later, it appeared that I'd lost some symlinks and vim was reading out of an old vimrc that didn't contain my new settings (I had to restore from backup a couple of weeks ago). My original settings (without the noinsert) worked as expected.
Thanks for the help Shougo, love your plugins!
The config doesn't work because it resolves the first item getting filled in (and subsequent typing not able to change it), but now the behavior becomes: the first result (which is almost always right) is never filled in, so i have to press Tab and Shift+Tab just to get it to fill the first result...
@unphased You can press <CR>
or <C-y>
to insert the first candidate.
Hi,
I'm having some issues getting my configuration set up. At the moment it looks like this:
When triggering the autocompletion, for example by typing
std::
, the first entry in the menu is automatically entered into the buffer (for example,std::advance
). I would like for this not to occur.I have tried the following additional settings, without success:
let g:lang_cpp_completeopt = 'longest'
let g:neocomplete#enable_auto_select = 0
let g:neocomplete#force_overwrite_completefunc = 1
What am I doing wrong?