clang complete doesn't work

2019-02-22 12:12发布

问题:

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?

回答1:

The common solution to this appears to be to add:

let g:clang_user_options='|| exit 0'

to your .vimrc file.



回答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.