extended % matching for HTML, LaTeX, and many other languages
Vim script
Latest commit ced6c40 Jan 29, 2008 Benji Fisher committed with Version 1.13.2
Another bug fix:  either 1.13 or 1.13.1 broke the behavior of finding a matching construct that starts after the cursor.
Permalink
Failed to load latest commit information.
doc Version 1.13 Oct 18, 2010
plugin Version 1.13.2 Oct 18, 2010
README Version 1.0: Initial upload Oct 18, 2010

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=39

The matchit.vim script allows you to configure % to match more than just
single characters.  You can match words and even regular expressions.
Also, matching treats strings and comments (as recognized by the
syntax highlighting mechanism) intelligently.
The default ftplugins include settings for several languages:
Ada, ASP with VBS, Csh, DTD, Essbase, Fortran, HTML, JSP
(same as HTML), LaTeX, Lua, Pascal, SGML, Shell, Tcsh, Vim, XML.
(I no longer keep track, so there may be others.)
The documentation (included in the zip file) explains how to configure
the script for a new language and how to modify the defaults.

Since vim 6.0, matchit.vim has been included in the standard vim distribution,
under the macros/ directory; the version here may be more recent.