I like to use clang with vim.
The only problem that I always run into is that whenever I turn on boost, clang goes through the boost library every time I put ".". after the name of the object. It takes 5-10 seconds.
Since I am not making changes to the header headers, is there a way to cache the search through boost? If not, is there a way to remove boost from automatic search completion?
update (1) in response to adaszko answer after: let g: clang_use_library = 1
- I am typing a variable name.
- I press ^ N. Vim starts a search on the bogey tree. it automatically completes the variable.
- I press "." and get the following errors:
Error detected while processing function ClangComplete: line 35: Traceback (most recent call last): Press ENTER or type command to continue Error detected while processing function ClangComplete: line 35: File "<string>", line 1, in <module> Press ENTER or type command to continue Error detected while processing function ClangComplete: line 35: NameError: name 'vim' is not defined Press ENTER or type command to continue Error detected while processing function ClangComplete: line 40: E121: Undefined variable: l:res Press ENTER or type command to continue Error detected while processing function ClangComplete: line 40: E15: Invalid expression: l:res Press ENTER or type command to continue Error detected while processing function ClangComplete: line 58: E121: Undefined variable: l:res Press ENTER or type command to continue Error detected while processing function ClangComplete: line 58: E15: Invalid expression: l:res Press ENTER or type command to continue
... and there is no automatic confirmation
update (2) is not sure that clang_complete should take care of the boost problem. vim without plugins searches through boost. superuser has an answer to comment on a search through boost dirs with set include=^\\s*#\\s*include\ \\(<boost/\\)\\@!
source share