tags:

views:

121

answers:

1

I like using pythoncomplete#Complete for Vim omnicompletion, but it doesn't work for Python modules other than the standard library.

Is there a way to re-compile Vim so that this will work on non-standard library modules?

I have tried pysmell, et. al., but they just don't work as well as pythoncomplete#Complete. This is for a Windows machine.

A: 

Have you tried setting PYTHONPATH prior to starting Vim?

You can also modify the path from inside Vim, by doing:

:python import sys
:python print sys.path
:python sys.path.append(...)
... etc
codeape
what I didn't realize is that vim will complete on packages that are loaded into the currently edited file. If they are not imported, they will not be completed.
reckoner