Wednesday, August 17, 2016

Selecting multiple tags

Is there a way (w/o plugins or VIMLing) to select two successive tags (no children => siblings) analogously - but not similar to - using e.g. v2at or d2at?

I'm not asking for a macro but for a native vim command (haven't found one...).

Sample ('*' denotes the cursor position; the area between the '|'s reflects the selection after "some possible native command"):

------------
$<ctag>
<tag>
a
</tag>

|<tag>
* b
</tag>

<tag>
c
</tag>|

<tag>
d
</tag>
</ctag>$
------------

Note: v2at would select the area between the '$'s.

--
--
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/d/optout.

No comments:

Post a Comment