使用 vim select 和 xml 块的最佳方法是什么?

With vim what is the best way to select an xml block?

我要select全部<div>

     <div>
      ^cursor
        <p>
          currsor
          Issues reported by division from the
          <a href="https://re.fr"> https://re.fr</a>
            they will create an issue.
        </p>
      </div>

目前我发现的最好的是:

V/div<Enter>n

Vjjjjjjj

但我们必须计算行数,这很烦人。

我想利用这个格式正确的事实 XML 所以我们知道哪个标签关闭哪个标签。

PS:我安装了 vim-surround-plugging

用户手册第 4 章介绍了文本对象,并在 :help text-objects 下进一步列出,很容易找到:

at    "a tag block", select [count] tag blocks, from the
      [count]'th unmatched "<aaa>" backwards to the matching
      "</aaa>", including the "<aaa>" and "</aaa>".
      See |tag-blocks| about the details.
      When used in Visual mode it is made characterwise.