我刚刚下载并声明了使用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/