Ⅰ. 插件描述
Vim plugin to highlight the last opened but unclosed delimiter from the cursor position forward.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'arnar/vim-matchopen'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'arnar/vim-matchopen'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'arnar/vim-matchopen'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/arnar/vim-matchopen
Ⅳ. 文档说明
# MatchOpen
A simple Vim plugin to highlight the last opened,
but unclosed delimiter. Based on Vim's own matchparen.vim.
Example:
synIDattr(synID(line("."), col("."), 0), "name")
^ ^
| if cursor is here
this is highlighted
By default the delimiters are highlighted the same as vim highlights matching
- To change this, set the
MatchOpenhighlight group in your.vimrc. E.g.:
hi link MatchOpen Error
Note: This is a preliminary version for testing. Only works for regular
parenthesis and has no documentation.
Warning: Like matchparen.vim, this installs an autocommand run whenever
the cursor is moved. It may be too slow if you have large folds collapsed
in the current window, or very long lines. It can be turned it off with :NoMatchLastOpen, and on again with :DoMatchLastOpen.