Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Python autcomplete not working #351

Closed benmezger closed 11 years ago

benmezger commented 11 years ago

if I try to import os for example, and I use os.<tab?> nothing happens, I see no os functions, this is for every imported module or created modules and in Python only, any idea why?

If I create a class with a few functions, then do x = MyClass() x.<tab?> also nothing.

Regards.

Shougo commented 11 years ago

Please check :echo has('python') and setl omnifunc? in python filetype.

benmezger commented 11 years ago

:echo has('python') returns 0 and setl omnifunc? returns omnifunc=pythoncomplete#Complete

Shougo commented 11 years ago

:echo has('python') returns 0 and setl omnifunc? returns omnifunc=pythoncomplete#Complete

You must enable Vim's python interface. To enable it, you must install like "vim-python" package or build Vim with Python interface manually.

benmezger commented 11 years ago

Fixed! Thank you!