sponsor Vim development Vim logo Vim Book Ad

vim-gencode-cpp : auto generate c++ function definition or declaration

 script karma  Rating 8/9, Downloaded by 1416  Comments, bugs, improvements  Vim wiki

created by
tenfy zhong
 
script type
ftplugin
 
description
more infomation: https://github.com/tenfyzhong/vim-gencode-cpp
Features
generate the function definitions of class
generate the static variable fefinitions of class
generate the declaration of the function

Usage
run GenDefinition in a function or variable declared
run GenDeclaration in a definition of a function

Configuration
g:cpp_gencode_function_attach_statement
A list of statement, this will be insert into function body before the function return.

Dependency
a.vim vimscript #31
 
install details
windows users change all occurrencws of ~/.vim to ~\vimfiles.

You can choose you preferred bundle manager
Run the following commans in a terminal:
mkdir -p ~/.vim/bundle  
cd ~/.vim/bundle  
git clone https://github.com/tenfyzhong/vim-gencode-cpp.git  ;
echo 'set runtimepath^=~/.vim/bundle/vim-gencode-cpp' >> ~/.vimrc  
 

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
vim-gencode-cpp-1.3.2.tar.gz 1.3.2 2016-06-14 7.4 tenfy zhong add test
vim-gencode-cpp-1.3.0.tar.gz 1.3.0 2016-06-07 7.4 tenfy zhong support namespace
generate declaration support namespace
generate definition support template
ip used for rating: 3.144.97.189

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