我可以使用VIM在Python中查看函数的doc字符串吗?

Nat*_*man 8 python vim docstring

在VIM中编写Python时有没有办法查看函数的doc字符串?

例如:

def MyFunction(spam):
    """A function that foobars the spam
    returns eggs"""

    return foobar(spam).eggs()
Run Code Online (Sandbox Code Playgroud)

我希望能够键入MyFunction(spam0)并查看文档字符串,作为工具提示或状态栏或VIM允许的任何其他方式.

Ott*_*ger 2

pythoncomplete脚本 可能就是您正在寻找的。