Ⅰ. 插件描述
Quickly filter all matches of a string, browse the list, and jump back quickly.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/quich-filter'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/quich-filter'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/quich-filter'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Quich-Filter
Ⅳ. 文档说明
This plug-in provides filtering/search functionality to Vim, similar to e.g.
PSPad. This plug-in offers a number of additional features:
- Further filtering/searching inside the filtered results.
- Syntaxt highlighting in the filtered results.
- Show context line around found matches. You can dynamically change the number
of lines. - Easy jumping to and from the filter buffers, including auto-follow.
In addition, the new 2.0 version (currently work in progress!) offers:
- Fine-tuning of results (AND, OR and AND-NOT)
- Showing context lines above, below or above and below the matches.
- Show the raw results (no line numbering) for easy yanking.
The search results are presented in a separate buffer (and window) and the
script offers a number of convenience key-mappings to navigate from one result
to the next.
There are no default mapping to start the plug-in, but setting this up can be
as easy as cut-n-paste from the help file. In the results buffer a number of
mappings are set up, please refer to the help file for an overview in 2.0. For
older releases, press ?. Since ? is a useful VIM command it's no longer mapped
in 1.0.7. In a results window, type ":call ShowHelp()" and press enter.