Thursday, May 16, 2013

Changing opening html tag can also changes closing?

Hello,

I want to change opening and closing html tags effectively. Take this html code in normal mode, the cursor is represented by a pipe:

<|ul class="foo">
<li class="active">item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>

cwol would produce:

<ol| class="foo">
<li class="active">item 1</li>
<li>item 2</li>
<li>item 3</li>
</ol>

The surround plugin could achieve this with cst<ol><Enter> but it wasn't meant to keep the existing attributes.

Thank you for any help you can provide in this situation.

Yann

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: