Keep HTML attributes when changing tags

By default keep the HTML attributes of the previous surrounding tag.

Option to remove attributes if the new tag prompt is ended with '>'.

Fixes #95.
This commit is contained in:
Shane Smith
2014-05-31 14:57:29 -04:00
parent fd75eb2cb2
commit 5d6b91ce80
2 changed files with 21 additions and 16 deletions

View File

@@ -130,9 +130,10 @@ code blocks in C-style languages, <C-}> (which is really <C-]>) adds braces on
lines separate from the content.
If t or < is used, Vim prompts for an HTML/XML tag to insert. You may specify
attributes here and they will be stripped from the closing tag. End your
input by pressing <CR> or >. If <C-T> is used, the tags will appear on lines
by themselves.
attributes here and they will be stripped from the closing tag. If replacing a
tag, its attributes are kept in the new tag. End your input with > to discard
the those attributes. If <C-T> is used, the tags will appear on lines by
themselves.
If s is used, a leading but not trailing space is added. This is useful for
removing parentheses from a function call with csbs.