HTML AutoCloseTag : Automatically closes HTML tags once you finish typing them.
| script karma
Downloaded by 5012
Comments, bugs, improvements
script versions (upload new version)
|Automatically closes HTML tag once you finish typing it with >. It is also smart enough to not autoclose tags when in a comment, when they are self-closing, or when they have already been closed.
So, <body id="foo">, upon typing >, will become <body id="foo">|</body>, where | is the cursor.
But, if you type <img src="bar.png">, the script knows to keep it the same.
|Move html_autoclosetag.vim to ~/.vim/ftplugin (or equivalent, e.g. $HOME\vimfiles\ftplugin on Windows)
To enable for xhtml/xml files, remember to add this to your .vimrc:
au FileType xhtml,xml so ~/.vim/ftplugin/html_autoclosetag.vim (or wherever you put it)
Click on the package to download.
ip used for rating: 22.214.171.124