Vim, omnicomplete and python documentation

I started to learn Python and I tried to configure my vim for it. I have vim 7.3.5.3 , it has omnicompletion, and I downloaded pyflakes . I read this article and he says that omnicompletion should also display some documentation (there is also an image with string.atoi and some documentation), but when I try something like this:

 import string string. 

and do CTRL-x CTRL-o I get the correct list, but I don't get any documentation.

Should I install other plugins or modify some configuration file?

EDIT : I needed to install supertabs in order to get the desired effect.

+4
source share
2 answers

To enable code completion (omni), add this line to your vimrc ($ HOME / vimrc):

 autocmd FileType python set omnifunc=pythoncomplete#Complete 

If it does not work, you will need this plugin .

+3
source

Check out my plugin: https://github.com/klen/python-mode

Rope out of the box. Also many other features.

+2
source

Source: https://habr.com/ru/post/1399644/


All Articles