【问题标题】:Can I view the doc string of a function in Python using VIM?我可以使用 VIM 在 Python 中查看函数的文档字符串吗?
【发布时间】:2009-07-08 08:50:39
【问题描述】:

在VIM中写Python的时候有什么办法可以查看函数的doc字符串吗?

例如:

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

    return foobar(spam).eggs()

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

【问题讨论】:

    标签: python vim docstring


    【解决方案1】:

    pythoncomplete script 可能就是您要找的。​​p>

    【讨论】:

    • 好的,我看到我将它作为现有发行版的一部分。我该如何使用它?
    • @Nathan 在输入函数/方法名称的中间使用Ctrl-x Ctrl-o
    猜你喜欢
    • 1970-01-01
    • 2010-10-02
    • 1970-01-01
    • 1970-01-01
    • 2010-12-04
    • 2016-09-14
    • 1970-01-01
    • 2011-07-25
    • 1970-01-01
    相关资源
    最近更新 更多