Auto close tag, support xml files. In addition to the alvan version, a line feed is added and the cursor is set with the appropriate indentation.
Demo with MatchTagAlways activated.
Just set this in your vimrc:
# filenames like *.xml, *.html, *.xhtml, ...
let g:closetag_filenames = "*.html,*.xhtml,*.phtml"
Then after you click > in those files, this plugin will try to close the current tag for you.
For example, below is the current content:
<table|
Now you press >, the content will be:
<table>|</table>
And now if you press > again, the content will be:
<table>
|
</table>
Just put the files into ~/.vim/ or <HOMEDIR>\vimfiles\ (for Windows).