Ⅰ. 插件描述
A collection of commands for manipulating Vim's listsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tommcdo/vim-lister'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tommcdo/vim-lister'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tommcdo/vim-lister'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tommcdo/vim-lister
Ⅳ. 文档说明
lister.vim
lister.vim is a collection of commands for manipulating and moving between
lists.
Quickfix list and Location list
:Qgrep {pattern} will narrow down the quickfix list to results with a
message matching the given pattern. :Qgrep! {pattern} will narrow down the
results to those whose message does not match the given pattern.
Similarly, :Qfilter {pattern} will narrow the quickfix list to results with a
filename matching the given pattern (and :Qfilter! for the inverse).
For the location list, there are :Lgrep and :Lfilter commands.
The {pattern} argument is always a Vim-flavoured regex.
Argument list
:Agrep [arguments] runs :grep [arguments] on the files in the argument
- If provided,
!is passed directly to:grep. This causes the quickfix - to be populated, but Vim does not move to the first item.
:Afilter {pattern} narrows the argument list to those with a filename
matching {pattern}. :Afilter! does the same, but where filenames do not
match a pattern.
Moving between types of lists
:Qargs populates the argument list with a unique set of files from the
quickfix list. Similar for :Largs, but with the location list.
:Sargs will convert all of the windows in the current tab page into a local
argument list.