Continuing on from some previous posts on the topic, Tobias Schlitt shares even more tips for working with PHP in the vi editor, specifically with the FTPlugin for VIM.
I recently added 2 new functions to my PHP FTPlugin for VIM, which I wanted to implement for a longer time and recently needed quite often. [...] The PhpAlign() function takes it from you and aligns the array declaration properly. [...] PhpUnComment() simply comments a line which is not commented and un-comments a line that is commented.
Both function descriptions include a few examples of their use and he links to his subversion repository to make grabbing the latest version of the plugin simple.