gpt4 book ai didi

Vim : youCompleteme plugin opens up a split window with function definition

转载 作者:行者123 更新时间:2023-12-03 15:25:20 24 4
gpt4 key购买 nike

我刚刚下载并声明了使用YCM插件进行vim。但是我注意到,每当弹出自动完成提示并提供完成建议时,都会在当前窗口中打开一个拆分窗口。关于如何配置YCM以不打开拆分窗口的任何建议?或至少在我选择某些东西时关闭 window 。

最佳答案

在您的.vimrc文件中,添加以下行:
let g:ycm_autoclose_preview_window_after_insertion = 1
根据文档:

When this option is set to 1, YCM will auto-close the preview window after the user leaves insert mode. This option is irrelevant if g:ycm_autoclose_preview_window_after_completion is set or if no preview window is triggered. See the g:ycm_add_preview_to_completeopt option for more details.



有关更多信息: https://github.com/Valloric/YouCompleteMe#the-gycm_autoclose_preview_window_after_completion-option

关于Vim : youCompleteme plugin opens up a split window with function definition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38534285/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com