HTML AutoCloseTag : Automatically closes HTML tags once you finish typing them.
| script karma
Downloaded by 5446
Comments, bugs, improvements
|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)
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.104.22.168