Skip to content

mageekguy/php.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

php.vim

Vim syntax file for PHP

Yet another PHP syntax file for VIM.
It's a light syntax file because there are:

  • No support for PHP native functions
  • No support for PHP native classes
  • No support for PHP native interfaces
  • No support for PHP native constants
  • No support for PHP short tags, ie <? and ?>
  • No support for other syntax like HTML, JavaScript or SQL.

In order to use it, just put it in your .vim/syntax directory.
It can be used only with VIM ≥ 7.

Features

  • Support PHP 5.4 syntax
  • Support annotations in comment block
  • Fold functions, classes, interfaces, methods
  • Fold comment block
  • Fold try and catch block.
  • Fold namespace importation if the use statement is used as a block, ie:
use
   foo\bar,
	atoum
;

About

Vim syntax file for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published