vim-grepper

:space_invader: Helps you win at grep.

Github星跟踪图

Build Status

vim-grepper

Use your favorite grep tool
(ag,
ack, git grep,
ripgrep,
pt,
sift,
findstr,
grep) to start an asynchronous search. All matches will be put in a
quickfix or location list.

This plugin works with Vim and Neovim on Unix-like systems. It's mostly working
on Windows as well.

Disclaimer: From my point of view it's feature-complete, so I won't add new
features or put much time into reviewing complex PRs.


  • 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 ack.vim and
ag.vim, you will love vim-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
, e.g.
vim-plug:

Plug 'mhinz/vim-grepper'

If you prefer lazy loading:

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.

Contact: Twitter

主要指标

概览
名称与所有者mhinz/vim-grepper
主编程语言Vim Script
编程语言Shell (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2015-07-29 18:01:45
推送于2025-02-18 12:51:09
最后一次提交2025-02-18 20:51:09
发布数5
最新版本名称v.1.4 (发布于 )
第一版名称v1.0 (发布于 2015-12-09 18:33:57)
用户参与
星数1.2k
关注者数16
派生数58
提交数467
已启用问题?
问题数185
打开的问题数24
拉请求数44
打开的拉请求数4
关闭的拉请求数30
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?