Skip to content

extended % matching for HTML, LaTeX, and many other languages

Notifications You must be signed in to change notification settings

exvim/ex-matchit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intro

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.)

For more details, try :help matchit in Vim. The help documentation explains how to configure the script for a new language and how to modify the defaults.

NOTE: 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, and easy for user to download and manage by plugin-managers

Requirements

  • Vim 6.0 or higher.

Installation

This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:

To install using Vundle:

# add this line to your .vimrc file
Bundle 'exvim/ex-matchit'

To install using Pathogen:

cd ~/.vim/bundle
git clone https://github.com/exvim/ex-matchit

To install using NeoBundle:

# add this line to your .vimrc file
NeoBundle 'exvim/ex-matchit'

Download zip file:

cd ~/.vim
unzip ex-matchit-master.zip
copy all of the files into your ~/.vim directory

About

extended % matching for HTML, LaTeX, and many other languages

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%