我使用YouCompleteMe在Vim中自动完成.它与VimShell不兼容,所以我想禁用它,只在VimShell缓冲区中.
如何禁用YouCompleteMe并启用NeoComplete从Vimscript中?
mik*_*ers 10
YouCompleteMe允许您配置文件类型白名单和黑名单,以启用或禁用给定文件类型的完成.
https://github.com/Valloric/YouCompleteMe#the-gycm_filetype_whitelist-option
Neocomplete具有类似的功能,带NeoCompleteUnlock/ NeoCompleteLock.
例如,要禁用YouCompleteMe并为vimshell文件类型启用NeoComplete,您可以在.vimrc中使用类似的内容:
let g:ycm_filetype_blacklist = { 'vimshell': 1 }
autocmd FileType vimshell NeoCompleteUnlock
Run Code Online (Sandbox Code Playgroud)
我无法测试这个,因为我不使用vimshell.