Include Fixer for C/C++ : Categorizes and Alphabetizes C/C++ #include directives
script karma |
Rating 1/5,
Downloaded by 672 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Deon Poncini |
|
script type |
utility |
|
description |
Include Fixer organizes C and C++ #include header files to be in specific
categories, as well as organizing alphabetically. Default categories are
provided, as well as the option to customize categories
Usage:
Once installed, use the following command to organize include files:
:FixIncludes
The command will search for lines containing #include directives, and organize
them into different categories and alphabetically within those categories.
Note: this includes whether the include is written as "file.h" or <file.h>.
All includes starting with " will precede those starting with <
The plugin comes with a number of default categories. Each category is
separated from the others with a blank line. The default categories are
arranged in the following order:
module
local
boost
qt
c std library
c++ std library |
|
install details |
Note: I recommend using Tim Pope's pathogen plugin to install this plugin. See
https://github.com/tpope/vim-pathogen. If you've installed pathogen properly
you can install Include Fixer with the following commands:
$ cd ~/.vim/bundle
$ git clone https://github.com/DeonPoncini/includefixer.git
If you aren't using pathogen, you can use the following steps to install:
1. Checkout the git repository above
2. Move `includefixer.vim` to your `plugins` directory
3. Move this help file into the `doc` directory |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.85
|