Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keep attributes on tag change example #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.markdown
Expand Up @@ -45,13 +45,19 @@ Emphasize hello: `ysiw<em>`

<em>Hello</em> world!

Finally, let's try out visual mode. Press a capital V (for linewise
Let's try out visual mode. Press a capital V (for linewise
visual mode) followed by `S<p class="important">`.

<p class="important">
<em>Hello</em> world!
</p>

To change tag and keep attributes omit the last angle bracket `cst<q`

<li class="important">
<em>Hello</em> world!
</li>

This plugin is very powerful for HTML and XML editing, a niche which
currently seems underfilled in Vim land. (As opposed to HTML/XML
*inserting*, for which many plugins are available). Adding, changing,
Expand Down