Ⅰ. 插件描述
extended % matching for HTML, LaTeX, and many other languagesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'exvim/ex-matchit'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'exvim/ex-matchit'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'exvim/ex-matchit'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/exvim/ex-matchit
Ⅳ. 文档说明
# 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'
cd ~/.vim
unzip ex-matchit-master.zip
copy all of the files into your ~/.vim directory