Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ripgrep config #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ foo'` to search for '#define foo'. See [issue #5].

## Possibly FAQ


#### Can I use `rg` ([Ripgrep]) with this?

Absolutely, You can write a pattern match for it--just set `g:ackprg`. If you like, you can fall back to Ack in case you use your vimrc on a system without `rg` available:

```vim
if executable('rg')
let g:ackprg = 'rg --vimgrep'
endif
```

#### Can I use `ag` ([The Silver Searcher]) with this?
Copy link

@ZeroKnight ZeroKnight Sep 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps just change this heading to something like:

#### Can I use `ag` ([The Silver Searcher]), `rg` ([Ripgrep]) or similar with this?

This avoids needlessly duplicating the documentation and gets the same message across.


Absolutely, and probably other tools if their output is similar or you can
Expand Down Expand Up @@ -135,6 +146,7 @@ nnoremap <Leader>a :Ack!<Space>
Most of the `:[L]Ack*` commands support this. Note that this behavior follows
the convention of Vim's built-in `:grep` and `:make` commands.

[Ripgrep]: https://github.com/BurntSushi/ripgrep
[The Silver Searcher]: https://github.com/ggreer/the_silver_searcher
[sadface]: https://github.com/mileszs/ack.vim/commit/d97090fb502d40229e6976dfec0e06636ba227d5#commitcomment-5771145

Expand Down