Ⅰ. 插件描述
A Vim plugin to provide %-style motion for single / double quotation marks, backticks and pipe.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'airblade/vim-matchquote'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'airblade/vim-matchquote'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'airblade/vim-matchquote'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/airblade/vim-matchquote
Ⅳ. 文档说明
# vim-matchquote
A Vim plugin to provide %-style motion for ' (single quotation mark), " (double quotation mark), ` (backtick), and | (pipe).
Given these constraints:
- only the current line is considered;
- the quotation mark under the cursor must occur an even number of times in the line.
Let's say the cursor is on the nth occurrence of the quotation mark. Then:
- if n is odd, the cursor moves forward to the next occurrence;
- otherwise the cursor moves backward to the previous occurrence.
Please note the matchit plugin (if you use it) should be loaded before this plugin.
Licence
Copyright Andrew Stewart. Distributed under the MIT licence.