jasonwoodland / vim-html-indent

Allows for automatic indentation of multiline element attributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-html-indent

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>

Installation

If you have pathogen installed, simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/jasonwoodland/vim-html-indent.git

About

Allows for automatic indentation of multiline element attributes


Languages

Language:Vim Script 100.0%