开发者

Recompile Vim for pythoncomplete#Complete on modules *other* than standard library?

开发者 https://www.devze.com 2022-12-15 12:19 出处:网络
I like using pythoncomplete#Complete for Vim omnicompletion, but it doesn\'t work for Python modules other than the standard library.

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 trie开发者_如何学God pysmell, et. al., but they just don't work as well as pythoncomplete#Complete. This is for a Windows machine.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消