make-element : generic imap to make an xml element of any word you type
script karma |
Rating 93/27,
Downloaded by 1856 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Bart van Deenen |
|
script type |
utility |
|
description |
In insert mode, typing anyword,,, gets translated to an xml element named 'anyword'
Example 1:
anyword,,,<cr><tab>xsl:if,,, ==>
<anyword>
<xsl:if>
</xsl:if>
</anyword>
with the cursor after the element open tag.
If anyword is not on a line by itself, no newline is added.
Example 2:
This is a bold,,, statement ==> This is a <bold>statement</bold>
Use it all the time myself, in docbook and with some custom dtd's.
See vimtip #465 |
|
install details |
just source it from ftplugin/xml.vim or ~/.vimrc or _vimrc |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.222.188.103
|