How do you automatically remove the preview window after autocompletion in Vim?

Posted by Ben Davini on Stack Overflow See other posts from Stack Overflow or by Ben Davini
Published on 2010-06-23T20:31:57Z Indexed on 2012/11/29 17:04 UTC
Read the original article Hit count: 223

Filed under:
|
|
|

I'm using omnifunc=pythoncomplete. When autocompleting a word (e.g., os.), I get the list of eligible class members and functions, as expected, as well as a scratch buffer preview window with documentation about the selected member or function. This is great, but after selecting the function I want, the preview window remains. I can get rid of it with ":pc", but I'd like it just to automatically disappear after I've selected my function, a la Eclipse. I've played around with "completeopt" but to no avail.

© Stack Overflow or respective owner

Related posts about python

Related posts about vim