2

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.vimand adding *.cc everywhere where file extensions are listed and then do :PluginUpdate, but that didn't help.

Thanks in advance!

1 Answers1

2

Found a workaroud. I've added:

  autocmd BufEnter *.cc set omnifunc=ClangComplete
  autocmd BufEnter *.cc set completefunc=ClangComplete

to my .vimrc