Automatically insert or delete
#includes for C++ code in vim.
This plugin is intended to be simple and intended to be used on simple C++ files only.
Alternatively, with Vundle,
Bundle 'quark-zju/vim-cpp-auto-include' in
BundleInstall in vim.
Only C++ files in
/tmp are processed by default.
Add following line in your
.vimrc to make your C++ code
/some/path/ processed when saving:
autocmd BufWritePre /some/path/**.cpp :ruby CppAutoInclude::process
If you want more control, feel free to edit the source :)