Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
I think you'll need a plugin like matchit in order to be able to match XML tags. matchit itself seems to come with most vim distributions, but you'll still have to enable it yourself. :help matchit-install for more. – jw013May 9 '12 at 0:51
Install the matchit plugin (see :help matchit-install for instructions).
Make sure automatic file-type detection and plugin-loading is enabled (:filetype plugin on).
Henceforth, whenever you edit a file detected as xml or html or some other tag-based markup language, the combination of the matchit plugin and the filetype plugin files will allow the % motion to match open and close tags.
matchititself seems to come with mostvimdistributions, but you'll still have to enable it yourself.:help matchit-installfor more. – jw013 May 9 '12 at 0:51