1

I have installed clang and clang_complete on a Linux system. I added the following lines to my .vimrc:

let g:clang_user_options='|| exit 0'
set completeopt-=preview

Auto-completion works for my own code. However, it doesn't work with STL container. Even when I just type std::, I see a "user defined completion - pattern not found" at the bottom of the screen. What is the problem?

I use Vim 7.3 and clang_complete 1.8

  • What happens if you don't add those settings? – Xymostech Dec 07 '12 at 06:06
  • If I don't add the first line, the autocomplete stops working even for my own code. Removing the second line also has no effect on my problem (it only makes the omnicomplete window pop up) –  Dec 07 '12 at 06:19
  • try deleting the `*.cache` files in `autoload/getopts` where clang_complete is installed – David Brown Dec 07 '12 at 07:10
  • There seems to be no `getopts' folder in my `~/.vim/autoload` –  Dec 07 '12 at 07:41

1 Answers1

0

The workaround is to tell clang_complete to use the clang library (instead of binary) for parsing. This is done by adding the following line to .vimrc:

let g:clang_use_library=1