https://github.com/xaizek/vim-inccomplete
Vim plugin for #include directive completion.
https://github.com/xaizek/vim-inccomplete
vim-plugin vim-plugins viml
Last synced: 5 months ago
JSON representation
Vim plugin for #include directive completion.
- Host: GitHub
- URL: https://github.com/xaizek/vim-inccomplete
- Owner: xaizek
- Created: 2010-11-28T17:23:10.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T22:47:28.000Z (over 6 years ago)
- Last Synced: 2025-03-26T05:30:32.519Z (about 1 year ago)
- Topics: vim-plugin, vim-plugins, viml
- Language: Vim script
- Homepage: https://www.vim.org/scripts/script.php?script_id=3345
- Size: 78.1 KB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### What is this plugin ###
This is a completion plugin for C/C++/ObjC/ObjC++ preprocessor's `#include`
directive.
### Which files are matched ###
`""` completion lists header files which are defined by `hpp` or `h` extension.
`<>` completion lists files that have `hpp` or `h` extension or don't have any.
### Sources of completion ###
Sources for `""` completion are configured via `g:inccomplete_localsources` and
can include:
- paths relative to the directory of current file
- `'-I'` keys from `g:clang_user_options`
- `'-I'` keys from `b:clang_user_options`
Additional sources for `""` completion can be specified via
`b:inccomplete_roots` (this is a list equivalent of older `b:inccomplete_root`
string option).
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)
### Additional notes ###
If you think it's faster to use `find` than builtin VimL functions, there is an
option for that.
This plugin can be used along with clang_complete plugin. And maybe with some
other completion plugins that weren't tested (inccomplete should work as long as
it's loaded after some other completion plugin).
### License ###
Same terms as Vim itself (see `:help license`).