HTML AutoCloseTag : Automatically closes HTML tags once you finish typing them.
script karma |
Rating 213/90,
Downloaded by 6891 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Michael Sanders |
|
script type |
ftplugin |
|
description |
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. |
|
install details |
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) |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|