Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any plugins / snippets that can generate a C++ class skeleton from a given header file, for Vim? (I tried ccimpl but there does not seem to be much information on implementing it).

share|improve this question

1 Answer 1

http://www.vim.org/scripts/script.php?script_id=213

or

http://www.vim.org/scripts/script.php?script_id=2624

May give you what you're looking for. Failing that, you could simply define your own templates for simple c++ classes (and other structures) by creating either a cpp.tpl or cpp.patterns.tpl file, and then placing them in your after folder and auto running them when a cpp file is loaded.

The following link gives a simple explanation of how to use them :)

http://vim.runpaint.org/typing/using-templates/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.