In Vim, how can I move to parent/cousine tags in xml files? I’m looking for something similar to:
vatat " create a selection for second parent tag with all child elements
but in normal mode (eg: go to second parent tag).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you want a way to “move” using any text-object motion or just the specific example you’ve given.
For the first one, just use v at the end
(you can also use o in visual mode, to go to the begining/end of the selection)
If you want a mapping just do (to use ]t and [t)
or something similar