sponsor Vim development Vim logo Vim Book Ad

vim-cpp-auto-include : Automatically insert or delete `#include`s for C++ code

 script karma  Rating 8/2, Downloaded by 379  Comments, bugs, improvements  Vim wiki

created by
WU Jun
 
script type
ftplugin
 
description
For updated information, see https://github.com/quark-zju/vim-cpp-auto-include

Screencast
====
https://github.com/quark-zju/vim-cpp-auto-include/raw/master/demo/vim-cpp-auto-include-demo.gif

Note
====
This plugin is intended to be simple and intended to be used on simple C++ files only.

Usage
====
:w

Configuration
====
By default, only C++ files in /tmp are processed.

Add following line in your `.vimrc` to make your C++ code in `/some/path/` processed when saving:

    autocmd BufWritePre /some/path/**.cpp :ruby CppAutoInclude::process

If you want more control, feel free to edit the source :)
 
install details
Copy the script to ~/.vim/plugin/

Alternatively, with Vundle, add "Bundle 'quark-zju/vim-cpp-auto-include'" in ~/.vimrc and run "BundleInstall" in vim.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cpp_auto_include.vim 1.0 2012-04-25 7.0 WU Jun Initial upload
ip used for rating: 3.92.28.84

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN.net Logo