views:

252

answers:

1

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  A: 

The pythoncomplete script is probably what you are looking for.

Otto Allmendinger
OK, I see that I have that as part of the existing distribution. How can I use it?
Nathan Fellman