Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I view the doc string of a function in Python using VIM?

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.

like image 522
Nathan Fellman Avatar asked Jul 08 '09 08:07

Nathan Fellman


1 Answers

The pythoncomplete script is probably what you are looking for.

like image 63
Otto Allmendinger Avatar answered Sep 30 '22 13:09

Otto Allmendinger