preview-window when typing function arguments
Closed this issue · 3 comments
During autocompletion, a preview window is opened. This is very handy because it tells me what the parameters of the function are. Also the completion menu does this too. But as soon as I start typing, both disappear. Is there a way to get the preview-window for the symbol under the cursor? And/or the autocompletion popup while typing function arguments? That would be most usefull!
This sounds like you may have a completion plugin enabled, correct? The preview window should stay open until you intentionally close it. However, it's common that other plugins try to manage this, such as closing it when you start typing.
You can bring back the preview window at any time by hitting ctrl-x ctrl-o at a valid completion point. I do this every now and then to keep a signature/doc at the top for easy reference, it is pretty handy.
Well, you are right. If I disable neocomplete, that the preview window stays. I wonder if it is still possible to use neocomplete and hold on to the preview-window. Has anyone a vim setting where this is the case?
Check the docs for g:neocomplcache_enable_auto_close_preview
, I think if you disable that the preview window will stay visible.
I generally like to have manual control over whether or not the preview window is showing. I have a ToggleEnablePreview function that does this, and I map it to <leader>pc
.