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.


  • % 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


    It will become (| indicates the cursor)


    To break them into two lines, type > twice as


    It will become

  • Smart HTML tags. After you enter


    It will become

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

Similar for other HTML tags.

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