8

Is there any way to view a function's doc string when writing Python in VIM?

For instance:

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

    return foobar(spam).eggs()

I'd like to be able to type MyFunction(spam0) and see the doc string, either as a tooltip or in the status bar or any other way that VIM allows.

1 Answer 1

2

The pythoncomplete script is probably what you are looking for.

Sign up to request clarification or add additional context in comments.

2 Comments

OK, I see that I have that as part of the existing distribution. How can I use it?
@Nathan Use Ctrl-x Ctrl-o in the middle of typing the function/method name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.