sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

Include Fixer for C/C++ : Categorizes and Alphabetizes C/C++ #include directives

 script karma  Rating 1/3, Downloaded by 195    Comments, bugs, improvements  Vim wiki

created by
Deon Poncini
script type
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

Once installed, use the following command to organize include files:

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

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
includefixer.tar.gz 0.1 2013-12-15 7.3 Deon Poncini Fix small bug with not removing enough blank lines
ip used for rating:

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.
SourceForge.net Logo