Combined HTML, PHP and Javascript indenting and syntax highlighting in vim
Hope this might help you.. https://github.com/2072/PHP-Indenting-for-VIm
and Why dont you use gedit as the editor its light weight and supports well for various file types. just a suggestion for you.