我正努力让
clang_complete和
neocomplcache很好地发挥.我的问题是,当我打开一个cpp,c,objc或objcpp文件时,我从neocomplcache收到以下错误
completefunc=ClangComplete^@^ILast set from ~/.vim/plugin/clang_complete.vim Another plugin set completefunc! Disabled neocomplcache.
clang_complete.vim具有以下配置行:
au FileType c,cpp,objc,objcpp call <SID>ClangCompleteInit()
我的问题是,是否有办法让我不再得到这个错误?有没有办法我可以使用clang_complete,不知何故仍然可以访问让我们说neocomplcache片段?
这个配置修复了问题(在我的Vimrc中)
原文链接:https://www.f2er.com/bash/383435.htmlif !exists('g:neocomplcache_force_omni_patterns') let g:neocomplcache_force_omni_patterns = {} endif let g:neocomplcache_force_overwrite_completefunc = 1 let g:neocomplcache_force_omni_patterns.c = \ '[^.[:digit:] *\t]\%(\.\|->\)' let g:neocomplcache_force_omni_patterns.cpp = \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' let g:neocomplcache_force_omni_patterns.objc = \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' let g:neocomplcache_force_omni_patterns.objcpp = \ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' let g:clang_complete_auto = 0 let g:clang_auto_select = 0 let g:clang_use_library = 1