GitXplorerGitXplorer
q

vim-cpp-auto-include

public
27 stars
7 forks
3 issues

Commits

List of commits on branch master.
Unverified
6946d4ade85242f7f3366b4504b5c3848655ce82

Update demo gif url.

qquark-zju committed 11 years ago
Unverified
e76f4f4465f113e60ffc8ea5c7a7801e972b2d2c

Merge pull request #1 from vas-and-tor/master

qquark-zju committed 11 years ago
Unverified
d4d22b3f15e838e492613e97286a13a161fda564

add more useful includes and functions

vvas-and-tor committed 11 years ago
Unverified
8eef820d2fca2d5982fe03d68a21a849b17721b9

add cmath: pow

qquark-zju committed 13 years ago
Unverified
027099daef089e575f3a523ce48a21e081c00fbe

stdlib: exit

qquark-zju committed 13 years ago
Unverified
3c4d13f7c42854ebaab42dddcf50bfaa0ef7239b

sqrt -> cmath

qquark-zju committed 13 years ago

README

The README file for this repository.

Automatically insert or delete #includes for C++ code in vim.

vim-cpp-auto-include demo

Note

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

Installation

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.

Usage

:w

Configuration

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::process

If you want more control, feel free to edit the source :)