async-grepper


Ⅰ. 插件描述

Helps you win at grep without delay.

Ⅱ. 基本信息

创建日期:  2017-02-12
使用用户:  1
Github星:  1
插件作者:  Kevin Velghe

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'paretje/async-grepper'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'paretje/async-grepper'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'paretje/async-grepper'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/paretje/async-grepper

Ⅳ. 文档说明

Build Status

Use your favorite grep tool
(ag,
ack, git grep,
ripgrep,
pt,
sift,
findstr,
grep) to start an asynchronous search. Matches will be added to the
quickfix list as they are found.

This plugin works with Vim and Neovim. It's based on
vim-grepper, but used
asyncrun.vim to execute the
grepper commands, and append the results asynchronously to the quickfix list.

_Disclaimer: using the location list, appending to an existing quickfix list
and stopping search after a certain number of results have been returned are
currently unsupported. PR's welcome._


  • Prompt: Use
    :Grepper to open a prompt, enter your query, optionally cycle through the

list of tools, fire up the search.

  • Operator: Use
    the current visual selection to pre-fill the prompt or start searching right

away.

  • Commands:
    :Grepper supports a wide range of flags which makes it extremely flexible.

All supported tools come with their own command for convenience:
:GrepperGit, :GrepperAg, and so on. They're all built atop of :Grepper.

  • Custom tools: Changing
    the behaviour of the default tools is very easy. And so is adding new tools.

_If you like vim-grepper, you will love
async-grepper._

Documentation

This README is only the tip of the iceberg. Make sure to read :h grepper and
the wiki to learn about every
feature.

Example configurations be be found
here.

The truth is out there.

Installation

Use your [favorite plugin
manager](https://github.com/mhinz/vim-galore#managing-plugins), e.g.
vim-plug:

Plug 'skywind3000/asyncrun.vim'
Plug 'paretje/asyc-grepper'

If you prefer lazy loading:

Plug 'skywind3000/asyncrun.vim', { 'on': 'AsyncRun' }
Plug 'mhinz/vim-grepper', { 'on': ['Grepper', '<plug>(GrepperOperator)'] }

Demo

General usage:

vim-grepper

Grepping only files currently loaded in Vim:

vim-grepper

Feedback

If you like this plugin, star it! It's a great way of getting feedback. The same
goes for reporting issues or feature requests.

添加新评论