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.
Copy plugin/cpp_auto_include.vim to ~/.vim/plugin/.
Alternatively, with Vundle,
add Bundle 'quark-zju/vim-cpp-auto-include' in ~/.vimrc
and run BundleInstall in vim.
:w
Only C++ files in /tmp are processed by default.
Add following line in your .vimrc to make your C++ code
in /some/path/ processed when saving:
autocmd BufWritePre /some/path/**.cpp :ruby CppAutoInclude::processIf you want more control, feel free to edit the source :)
