Wiki: Match It


Note: You are viewing an old revision of this page. View the current version.


The matchit.vim script allows you to configure % to match more than just single characters. You can match words and even regular expressions. 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.

The version for vim 6.x is included in the standard vim distribution, under the macros/ directory; the version here may be more recent.

http://vim.sourceforge.net/scripts/script.php?script_id=39


Sponsored by: Labrat Technology -- Need Consulting Services? Programming, Maintenance, Security, Database Analysis & Design, Hosting -- we do it all!
Copyright 2005 Robert Melton
Send questions and comments to
Last updated March 10th, 2005