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

时间:2009-07-08 08:50:39

标签: python vim docstring

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

例如:

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

    return foobar(spam).eggs()

我希望能够输入MyFunction(spam0)并查看文档字符串,可以是工具提示,也可以是状态栏或VIM允许的任何其他方式。

1 个答案:

答案 0 :(得分:2)

pythoncomplete script可能就是你要找的东西。