xmledit is a Vim filetype plugin to ease XML/HTML file editing.

xmledit is available at AUR. You can install by

yaourt vim-xmledit

To add HTML support, after downloading this plugin, open /usr/share/vim/vimfiles/doc/xml-plugin.txt, copy/paste the last part and save as /usr/share/vim/vimfiles/ftplugin/html.vim.

Features:

  • % jumps between < and > with cursor on them
  • % jumps between beginning and end tag with cursor in a tag
  • End tag auto completion. After I enter

    <apple>
    
It will become ( indicates the cursor)
    <apple>|</apple>

To break them into two lines, type > twice as

    <apple>>

It will become

    <apple>
    |
<apple>
  • Smart HTML tags. After you enter

    <a>
    

It will become

    <a href="">|</a>

Similar for other HTML tags.

Project Homepage: http://www.vim.org/scripts/script.php?script_id=301