Vim and clang_complete, how to explicitly request to reparse my code
clang, clang-complete, vim
Solution
From the clang_complete docs:
*clang_complete-periodic_quickfix*
*g:clang_periodic_quickfix*
If equal to 1, it will periodically update the quickfix window.
Default: 0
Note: You could use the g:ClangUpdateQuickFix() to do the same with a mapping.
If you set this variable to 1, it would update the quickfix window periodically, (and) or you could create a mapping thus:
nmap <leader>uq :call g:ClangUpdateQuickFix()
so that \uq would cause the update. (of course, using YOUR leader mapping, naturally)
Problem
I use Vim with clang_complete for omnicompletion. The plugin is automatically triggered when I need completion, e.g., after I type `.` or `->` to access an object members or methods (see screenshot below). The plugin works really nice, however I would need a way to trigger it manually (i.e. to compile my code for syntax checking). This is useful for two reasons: - Static syntax checking - Clear previous errors which have been fixed (which otherwise will remain in their buffer). See the two screenshots below for a better understanding. Any help is appreciated. Thanks. Screenshot 1 Screenshot 2