sponsor Vim development Vim logo Vim Book Ad

ccimpl.vim : Generates a skeleton implementation of classes defined in a C++ header file.

 script karma  Rating 14/10, Downloaded by 2124  Comments, bugs, improvements  Vim wiki

created by
Neil Vice
 
script type
ftplugin
 
description
This script defines a function Implement(), that when called from a C++ header file generates a skeleton implementation of the classes defined in the header, in a new vertical window.

This is great for defining and documenting the interface to a class and then using this function to generate a skeleton implementation to be filled in.

TODO: Handle functions outside of classes and thus C compatibility.
            Implement static member initialization.
 
install details
Place the script in the plugins 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
ccimpl.vim 0.6 2005-12-09 6.0 Neil Vice Defined g:h_extensions variable as a comma separated list of c++ header-file extentions that the script will support.
Improved robustness and fixed some minor issues.
ccimpl.vim 0.5 2005-05-12 6.0 Neil Vice Fixed bug where if g:InterFunctionGap = 1 then no newline was inserted at the end of the file.
Fixed bug where the header file was not #included if the implementation file began empty.
ccimpl.vim 0.4.1 2005-05-12 6.0 Neil Vice Added global variable \"g:cxx_extension\" (defaults to \"cpp\") to use as extension of generated source file.
ccimpl.vim 0.4 2005-04-30 6.0 Neil Vice Fixed to correctly handle destructors.
Fixed bug where 'method-like' constructs in attribute comments would cause them to be treated as methods.
No longer copies comments to the implementation by default - set g:implComments=1 to achieve the old functionality.
ccimpl.vim 0.3 2005-04-27 6.0 Neil Vice Improved window handling - may fix incompatibilities with other plugins.
Handles default parameters.
Ignores brackets in Doxygen comment blocks.
Added 'g:fnTypeSepLine' flag that when set to 1 (default 0) forces return types onto a separate line.
ccimpl.vim 0.2.1 2005-04-26 6.0 Neil Vice Prevented the absence of a namespace declaration from causing errors.
ccimpl.vim 0.2 2004-12-09 6.0 Neil Vice Added support for namespaces.
Improved comment indenting.
Fixed bug: functions including namespace directives would be ignored.
Fixed bug: the end of a class would be ignored if not at the start of the line.
ccimpl.vim 0.1 2004-12-01 6.0 Neil Vice Initial upload
ip used for rating: 3.145.186.173

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.
   
Vim at Github