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.

Nathan Fellman
  • 122,701
  • 101
  • 260
  • 319

1 Answers1

2

The pythoncomplete script is probably what you are looking for.

Otto Allmendinger
  • 27,448
  • 7
  • 68
  • 79