Reputation: 776
I've installed clang_complete plugin using Vundle. Seems to work for *.cpp
files (:set omnifunc?
gives ClangComplete
and autocompletion mostly works as it should), but I'm rather using *.cc
and those the plugin seems not to recognise. (:set omnifunc?
gives nothing)
I've tried changing ~/.vim/bundle/clang_complete/plugin/clang_complete.vim
and adding *.cc
everywhere where file extensions are listed and then do :PluginUpdate
, but that didn't help.
Thanks in advance!
Upvotes: 2
Views: 185
Reputation: 776
Found a workaroud. I've added:
autocmd BufEnter *.cc set omnifunc=ClangComplete
autocmd BufEnter *.cc set completefunc=ClangComplete
to my .vimrc
Upvotes: 2