@sehe I did try google but I found very complicated solution. I wish I would be as smart as you
–
Tech4WilcoSep 30 '11 at 12:32

1

no problem; I'm not trying to put you down. However, if you did use google, it is nicer to say so in the post. Tell us what you did find, and what part was giving you trouble - that way, people can really help instead of giving the obvious answers only
–
seheSep 30 '11 at 13:04

1

@sehe oh yeah, good idea thanks, still new at this but learning;)
–
Tech4WilcoSep 30 '11 at 13:10

The above binds phpDocumentor to Ctrlp in insert, normal, and visual modes. Place your cursor on a class, function, or variable definition, press Ctrlp, and the plugin will attempt to form a doc block based on the definition.

Assume you place your template at ~/templates/phpdoc.php.
With the below abbreviation, if you type ,p, you will
read the contents of your phpdoc.php into the current file,
( at or below the current line - one of those ).

map ,p :r ~/templates/phpdoc.php<cr>

Then just add the line to your .vimrc file, replacing the
file-path and ,p to your liking.

This is kind of similar to what you want too, but with MIT license with some extra bells and whistles, showing how you could potentially reduce some of the manual work with templates: vimeo.com/30391489 or vimeo.com/30441772
–
kikuchiyoJan 23 '12 at 17:14

Looks good to me, about what I was going to say.
–
KevinJan 27 '12 at 22:53