HTML indent plugin for Vim. Based on xml.vim.
Allows for automatic indentation of multiline element attributes, for example:
<form action="/submit-form"
method="post"
name="myForm">
<label for="fullname">Your name: </label>
<input type="text"
id="fullname"
name="fullname"
placeholder="Full name">
<select name="sex">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<input type="submit" value="Send">
</form>
If you have pathogen installed, simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/jasonwoodland/vim-html-indent.git