Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Text Editing&Processing > Vim Plugins

    AutoInclude 1.0

    Download button

    No screenshots available
    Downloads: 485  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    5 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Py Rho | More programs
    GPL / FREE
    June 25th, 2008, 16:09 GMT
    ROOT / Text Editing&Processing / Vim Plugins

     Read user reviews (0)  Refer to a friend  Subscribe

    AutoInclude description

    AutoInclude is a Vim script that allows you to automatically add the #include statements at the top of you *.{cc,hh} files.

    AutoInclude is a Vim script that allows you to automatically add the #include statements at the top of you *.{cc,hh} files.

    To use it, place the cursor on the type you need to include, then press and the corresponding #include statement will be added.
    In *.cc files, the correct #include is added, and in *.hh files, the forward declaration is added.

    Example:

    void myfunc (Foo* x);
    -> if you place the cursor on "Foo" and press (just the 2 semicolons), the #include "foo.hh" will be added at the top of the file. (The insertion location is specified by a variable, see Install Details).

    The naming standard used is "Foo" and "FooBar", for the FooBar class the #include will be: #include "foo-bar.hh".

    Requirements:

    · Vim

    INSTALLATION:

    Just put the autoinclude.vim file in your ~/.vim/plugin directory.
    You can specify the line where the #include will be added with the g:AutoIncludeLine variable.

    Just add this line to your ~/.vimrc file:
    let g:AutoIncludeLine = 42
    Where 42 is the line number.

    Product's homepage

      


    TAGS:

    Vim plugin | Vim script | library autoinclude | Vim | plugin | C



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM