This is a completion plugin for C/C++/ObjC/ObjC++ preprocessors include directive.
It can complete both "" and <> forms of #include.
For "" it gets all header files in the parent directory of current buffer or in any directory specified by a relative path.
And for <> it gets all files that have hpp or h extensions or don't have any.
You can complete files and directories.
It can be configured to use GNU find utility if you think it's faster than using VimL functions.
Source for "" completion is directory in which current file is located.
Sources for <> completion are:
- 'path' option (on *nix it's set to '/usr/include' by default, but on Windows you should set it to the right directories manually)
- g:clang_user_options ('-I' keys)
- b:clang_user_options ('-I' keys)
Just extract vim-inccomplete.zip into your ~/.vim/ or ~/vimfiles/ (~/.vim/bundle/ or ~/vimfiles/bundle/ if you use Pathogen (vimscript #2332)).
This plugin can be used along with clang_complete plugin (vimscript #3302). And maybe with some others completion plugins that I haven't tested (inccomplete should work if it'll be loaded after some other completion plugin).
When defined, use b:inccomplete_root to complete local includes relative to project root.
Fix completion, which had some issues.
Enable plugin for filetypes like cpp.doxygen.
Parse g:clang_... even when clang_complete isn't installed.
Be more YCM-friendly.
Fix work in unnamed buffers.
Missed old variable names have been fixed!
User-completion has been replaced with omni-completion to make it work fine with new versions of clang_complete.
Don't complete after second " in the line.
A little bug in ICComplete with l:user has been fixed.