使用函数签名禁用自动(预览)window(缓冲区)
Disable automatic (preview) window (buffer) with a function signature
每次单击点时,函数签名都会出现在单独的缓冲区中。
import sys
sys.argv # in this moment I have a separate buffer opened with sys.argv signature
然后这个缓冲区一直存在,直到手动关闭。
我只想在按下 ctrl-K
时才拥有它。或者至少当我退出插入模式时它会消失...
终于找到了解决办法:
添加
我添加了你的CompleteMe插件:
Plugin 'Valloric/YouCompleteMe'
和
let g:ycm_autoclose_preview_window_after_completion=1
这是 Python-模式中使用的绳索自动完成的默认行为。
如果您不喜欢这种行为,可以使用
将其关闭
让g:pymode_rope_complete_on_dot = 1
它在您使用 YouCompleteMe 时起作用的原因是因为 YouCompleteMe 正在关闭整个 python-模式插件。因此,虽然您可以解决这个问题,但您也会失去 python-模式的所有其他功能。
意识到这个缓冲区叫做preview window
。因此 :pc
或简单地 <C-w-C-z>
可以关闭它
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|.
每次单击点时,函数签名都会出现在单独的缓冲区中。
import sys
sys.argv # in this moment I have a separate buffer opened with sys.argv signature
然后这个缓冲区一直存在,直到手动关闭。
我只想在按下 ctrl-K
时才拥有它。或者至少当我退出插入模式时它会消失...
终于找到了解决办法:
添加
我添加了你的CompleteMe插件:
Plugin 'Valloric/YouCompleteMe'
和
let g:ycm_autoclose_preview_window_after_completion=1
这是 Python-模式中使用的绳索自动完成的默认行为。
如果您不喜欢这种行为,可以使用
将其关闭让g:pymode_rope_complete_on_dot = 1
它在您使用 YouCompleteMe 时起作用的原因是因为 YouCompleteMe 正在关闭整个 python-模式插件。因此,虽然您可以解决这个问题,但您也会失去 python-模式的所有其他功能。
意识到这个缓冲区叫做preview window
。因此 :pc
或简单地 <C-w-C-z>
可以关闭它
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|.