VIM 删除 - 多行

问题描述 投票:0回答:2

有什么办法可以在多行上做类似

di>
的事情

所以

<Hello>{caret position here}
    <World>
        <Something />
    </World>
</Hello>

变成:

<Hello></Hello>
vim
2个回答
5
投票

您正在寻找

it
或“内部标签”文本对象

dit

如需更多帮助,请参阅

:h it
:h at


0
投票

事实上,如果你在第二个标签内,解决方案一定是

2dit
,否则是
dit

© www.soinside.com 2019 - 2024. All rights reserved.