Free To Feel

Heading to entrepreneur.

Joshua Chi

Format PHP Code integrated with VIM

I like this post Command line PHP Code Formatter for use with VIM. It really save me a lot of time on format the past code in VIM. 1. download the beautify.php.gz

  1. Copy the beautify.php into your user bin directory cp beautify.php /usr/local/bin chmod 755 /usr/local/bin/beautify.php

  2. Select the code and then format it using the php script. Selecting code in visual mode (shift-v while in command mode) and then sending it to beautify.php by :! beautify.php

comments powered by Disqus