Reputation: 1648
Every time I click dot, the function signature appears in a separate buffer.
import sys
sys.argv # in this moment I have a separate buffer opened with sys.argv signature
Then this buffer exists until manually closed.
I'd like to have it only when I press ctrl-K
. Or at least it disappears when I exit insert mode...
Upvotes: 0
Views: 1220
Reputation: 1648
Realize that this buffer is called preview window
. Thus the :pc
or simply <C-w-C-z>
works to close it
CTRL-W CTRL-Z *CTRL-W_CTRL-Z* *:pc* *:pclose*
:pc[lose][!] Close any "Preview" window currently open. When the 'hidden'
option is set, or when the buffer was changed and the [!] is
used, the buffer becomes hidden (unless there is another
window editing it). The command fails if any "Preview" buffer
cannot be closed. See also |:close|.
Upvotes: 0
Reputation: 5350
This is the default behavior of the Rope AutoCompletion used in Python-Mode.
If you dont like the behavior, you can turn it off using
let g:pymode_rope_complete_on_dot = 1
The reason its working when you use YouCompleteMe, is because YouCompleteMe is turning off the whole python-mode plugin altogehter. So while you can get ride of this issue, you will lose all the other features of python-mode as well.
Upvotes: 1
Reputation: 1648
Finally I found the solution:
add
I added youCompleteMe plugin:
Plugin 'Valloric/YouCompleteMe'
and
let g:ycm_autoclose_preview_window_after_completion=1
Upvotes: 5