php_template : PHP5 Code templates for common snippets
script karma |
Rating 8/4,
Downloaded by 1129 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Sérgio Carvalho |
|
script type |
ftplugin |
|
description |
This filetype plugin provides a couple of code templates for PHP5
development. The code is formatted according to PEAR Coding Standards.
The three provided templates are:
- Class file template
- Method docblock template
- Field getter and setter template
|
|
install details |
Install by placing the file in the ~/.vim/ftplugin directory. Make sure you have
filetype plugins enabled (type :filetype<CR> and look at the result). If not,
place "filetype plugin on" in your ~/.vimrc
To use:
For the method docblock and getter/setter templates, just write the code as
usual. A mapping is triggered when you type ( after the method name, and
when you type the ; after the field definition.
For the class file template, type 'class' in normal mode. You'll be prompted
for relevant information, and the class skeleton will be generated. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.22.181.209
|