vim-jedi autocomplete not working

10.3k views Asked by At

I just installed jedi-vim with vundle My vim version is 7.3.429. I installed jedi vi pip

every time I hit . or <C-Space> I get this error.

Omni completion (^O^N^P) Pattern not found

when I searched here for this pattern I found a solution to use vim-jedi instead. But unfortunatelly this occours with jedi-vim.

Here is some output of some registers:

:set omnifunc

omnifunc=jedi#complete


:messages

Messages maintainer: Bram Moolenaar <[email protected]>
"models.py" 31L, 1052C
<emptyline>
2

There are 2 answers

3
romainl On

IIRC, jedi-vim was publicly released one or two weeks ago. I doubt you will get much help outside of its issue tracker.

Anyway, the plugin seems to be using Vim's omni completion under the hood, specifically the <C-x><C-o> shortcut which, in your case, doesn't seem to return anything because it can't recognize the keyword before the ..

Either jedi-vim doesn't work or your code is wrong or the plugin is badly installed.

0
thinker3 On

Because this line was in my .vimrc:

autocmd FileType python setlocal omnifunc=pythoncomplete#Complete

I could not use jedi for a long time. When removed it, it's OK.

:set omnifunc
omnifunc=jedi#completions