5

I installed clang_complete for vim,but it doesn't work. For example: When I typed std:: in a c++ file with vim, the bottom of vim's window shows that:

User defined completion (^U^N^P) Pattern not found

How can I solve this?

timss
  • 9,982
  • 4
  • 34
  • 56
Da Lin
  • 179
  • 2
  • 9
  • you need to provide more detail about your setup if you want to get any useful help. But probably clang_complete can't find clang in your path. – Gabriel Southern Jun 05 '12 at 17:04
  • How did you install it? What the configuration about clang complete in you vimrc? Can you add these information to your question please. – Fatih Arslan Jun 09 '12 at 08:07

2 Answers2

5

The common solution to this appears to be to add:

let g:clang_user_options='|| exit 0'

to your .vimrc file.

sjdowling
  • 51
  • 1
2

This problem was solved at the issue #178. This was in truth a problem with Clang, I've opened a bug report and it was promptly solved.

Also, I invite you to take a look at my setup.

oblitum
  • 11,380
  • 6
  • 54
  • 120