Tuesday, 3 January 2012

Vim: Format different type of code in one file

Let's say you have a PHP file with some HTML code mixed in.

:set filetype=html

And then highlight your text and hit  = . BOOM! HTML formatting succes.