How to make the preview window pop up manually for a method description?
I'm developing in Python. When I'm typing a method name, for example my_object.some_method() while I'm typing some_method() a popup appears, and arrowing down through it I see the preview window opened up and showing great information about the method.
I would like to know how I can manually pop up that preview window for a method description (that the cursor is on top of) so I can navigate to the preview window and read, scroll, etc.
I can't seem to figure this out. I read all through :h preview-window but nothing seemed to answer the question there.
Any help is much appreciated, thank you in advance!
Posted Apr 4, 2017, 10:17 AM UTC
I'm pretty sure it's your jedi-vim plugin that is producing the preview window (https://github.com/davidhalter/jedi-vim). You should consider reading the help for the plugin
:help jedi-vimbut I glanced at it at https://github.com/davidhalter/jedi-vim/blob/master/doc/jedi-vim.txt and noticed thatKis mapped tojedi#show_documentation()which I think is what you want. It's a sensible choice becauseKnormally executeshelpprgfor the keyword under the cursor. If you're doing python that's probably the sort of help you'd want.TLDR: Try pressing
Kon a method.Perfect, thanks so much!