sponsor Vim development Vim logo Vim Book Ad

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.
 

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
php_template.vim 0.1 2005-06-20 6.0 Sérgio Carvalho Initial upload
ip used for rating: 3.22.181.209

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