So after reading
this blog entry from Gustavo, I found it interesting and decided to do the same for Vim, as I would never use Emacs :D. So I found this
script and did some small changes to make it fit better the GTK+ coding style.
To use the script first copy it to ~/.vim/plugin directory, then open a file with vim and run one of the commands:
To generate the class definition.
To generate the class implementation.
Both commands will use the filename as default for the class name. You can change it, by typing the class name manually. It will replace "-" with "_" and also try to apply
Camel Case to the filename. For example a file named test-object.h will generate a class named TestObject.
If you are interested, you can download the updated version of the script from
here
0 comments:
Post a Comment