after installing eclim and ycm in vim, when you start typing vim will use -- user defined completion in the popup menu, you can switch to Omni completion, which set up to display eclim options with c-x c-o.
How do I make vim user Omni completion options and not user defined option by default without having to press c-x c-o every time ?
if I understand correctly the chain should go:
completefunc -(calls)> omnifunc -(calls)> eclim options
instead completefunc is calling user defined completion by default, and will switch to omnifunc on c-x c-o
This is from my current ~/.vim/vimrc:
I found that I needed to have &omnifunc = &completefunc when I want to use Eclim's semantic completion.
I am not sure I understand completely but, it looks like Eclim expects omnifunc and YCM expects completefunc, where User completion = completefunc and Omni completion = omnifunc