Reputation: 77
I made completion according to article here http://sontek.net/blog/detail/turning-vim-into-a-modern-python-ide and it works fine but one thing abut id is bugging me. Is there way to automatically close that window in which there is shown all docstrings? Or i have to get use to manually closing it after using completion to complete function/method names?
Upvotes: 4
Views: 942
Reputation: 4887
If you're using Supertab, it has a setting to automatically close the preview window. As Alex Kroll said on Vi and Vim:
g:SuperTabClosePreviewOnPopupClose (default 0)
Looks like it's what you want
:he supertab-closepreviewonpopupclose
Add to your vimrc:
let g:SuperTabClosePreviewOnPopupClose = 1
Upvotes: 1
Reputation: 66
I have not found a way to show it with the popupmenu then hide it when the popupmenu is closed. However, you can disable it entirely with the following:
set completeopt=menu
Upvotes: 0
Reputation: 196536
That's the preview window, you can close it from anywhere with :pc
or <C-w>z
.
I usually keep it open: it's small and unobstrusive.
Upvotes: 0