This is the official PHP indentation plug-in for VIm (version 1.39 is bundled with VIm 7.4).
Please, visit the homepage of the PHP indentation script to see all the details about its features and capabilities.
:help php-indent inside VIm.
Optional updated Syntax script
Add the following line to your
:so %or otherwise reload your VIm