Selecting multiple tags

7 views
Skip to first unread message

Axel Bender

unread,
Aug 17, 2016, 8:26:21 AM8/17/16
to vim_use
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.

Reply all
Reply to author
Forward
0 new messages