Sunday, May 20, 2012

python module's function pydoc

How to let vim be smart to judge what topic current is for help document.
for example:
import random
y = random.ran|dint(1, 6)
My cursor is at "|". When I press "K", it should open help for randint in module
random. But I do not know how to let a function know I'm is this module's
function.
Then let pydoc open "module.function"(random.randint) instead of not found.

--
[ stardiviner ] ^^&^^ {I hate all of you ! Leave me alone}
IRC(freeenode): Evanescence \\ Twitter: @numbchild \\
GnuPG Key fingerprint
>>> 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433

No comments: