Search code examples
vim

VIM Delete in - multiple lines


Is there any way I can do something like di> on multiple lines

So

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

turns to:

<Hello></Hello>

Solution

  • You are looking for the it or "inner tag" text-object

    dit
    

    For more help see :h it & :h at