I want to select the inner text between the xml tag. e.g., I want to select Default
in this text:
<UserID>Default</UserID>
I know how to use Vi to select text in the quote and bracket delimiters (e.g., "", (), [], ...). I tried both Vi< and Vi>, and neither of them selected any text.
Is there any command to quickly do that?
In normal/command mode, type the commands vit while in the tag.
mnemonic: "visual in tag"
:help v
:help v_it
(inner tag block):help text-objects
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With