Jedi-vim: Add an option to disable the pydoc split

Created on 28 Nov 2012  路  6Comments  路  Source: davidhalter/jedi-vim

When completion is done, the window is automatically split and the pydoc description is shown above the code buffer. This really confuses me while editing code, because the position of the line is changing all the time. Could you please add an option to disable the pydoc buffer or tell me, how to disable it?

Thanks.

Most helpful comment

I meant the preview window. I just found out that it can be disabled with putting the following line to .vimrc:

set completeopt-=preview

All 6 comments

I'm really not sure what you mean.

Are you talking about the preview window of the completions (which changes by navigating the completion list). Or are you talking about the pydoc window that you can enable/disable with K?

I meant the preview window. I just found out that it can be disabled with putting the following line to .vimrc:

set completeopt-=preview

Great! I'll close this! If you ever have problems again, let me know!

Yep. Thank you! :-)

I'm having a strange problem with this. I have put set completeopt-=preview in my ~/.vimrc. But every time I open Vim and edit a python file the PyDoc split window is displayed. If I open the .vimrc file, and type :so %, only then does it stop.

I have to do this every time I open Vim. Can you please recommend a solution?

UPDATE:
OK I have solved the issue by putting this in my .vimrc file:

autocmd FileType python set completeopt-=preview

Previously I was just putting set completeopt-=preview. That doesn't work.

@jonas-maj Yes I think you're right, we restructured that.

You could theoretically set g:jedi#auto_vim_configuration = 0. That option is causing the preview to be set.

That's the recommended path in .vimrc:

let g:jedi#auto_vim_configuration = 0
set completeopt=menuone,longest

Otherwise Jedi does some auto configuration.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

optix2000 picture optix2000  路  6Comments

NoahTheDuke picture NoahTheDuke  路  10Comments

ethan-leba picture ethan-leba  路  10Comments

lkhphuc picture lkhphuc  路  11Comments

ayeganovgb picture ayeganovgb  路  11Comments