Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 114267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:50:01+00:00 2026-05-11T02:50:01+00:00

Vim % operator jumps to matching parentheses, comment ends and a few other things.

  • 0

Vim % operator jumps to matching parentheses, comment ends and a few other things. It doesn’t, however, match XML tags (or any other tag, to the best of my knowledge).

What’s the best way to jump to the matching XML tag using Vim?

Note: What I really want to do is duplicate a section in an XML file without manually looking for the matching tag.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:50:02+00:00Added an answer on May 11, 2026 at 2:50 am

    There is a vim plugin called matchit.vim . You can find it here: http://www.vim.org/scripts/script.php?script_id=39 . It was created pretty much the exact purpose you describe.

    Install that, place your cursor on the body of the tag (not the <>, else it’ll match those) and press % to jump to the other tag. See the script’s page to find out what else it matches.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I highlight operators/parentheses/brackets/etc. in VIM? I'm not interested in coloring matching or
In Vim, when I comment a multi-line visual selection using NERDCommenter, the blank lines
In Vim I am trying to paste a few lines: PROC SQL; CONNECT TO
I have been looking to map a new operator in Vim that takes an
Vim has templates and idioms programming and other similar stuff. For example, the c.vim
A few micro-questions regarding normal!, incsearch and the / operator (search) . I'm not
I would like to get an AND -operator to the following Vim command :command!
Vim's syntax highlighting for XML/XSL is great, except it turns off all syntax highlighting
I am using the Firefox plugin Vimperator that simulates vim like behaviour. However, i
Vim works fine for all other languages, but word detection seems wonky in python.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.