Formatting PHP Code within Vim

Posted by gacrux on Stack Overflow See other posts from Stack Overflow or by gacrux
Published on 2009-05-13T13:15:05Z Indexed on 2012/12/06 23:04 UTC
Read the original article Hit count: 223

Filed under:
|
|
|

I'm currently using Vim as a lightweight IDE. I have NERDTree, bufexplorer, supertab, and ctags plugins which do almost everything I want. Only big thing missing for me is auto code formatting.

I'm working with some messy PHP code which has inconsistent indenting and code formatting, ideally I could highlight the code I want formatted (whole files would be fine too) and run a command to tidy it.

Does anybody have a nice solution for this working in Vim?

© Stack Overflow or respective owner

Related posts about php

Related posts about vim