forked from jremmen/vim-ripgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vim's syntax highlighting for the result highlighting
- Loading branch information
1 parent
ac35dd1
commit 61a2d15
Showing
2 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
# vim-ripgrep | ||
|
||
:Rg <string|pattern> | ||
```vim | ||
:Rg <string|pattern> | ||
``` | ||
|
||
Word under cursor will be searched if no argument is passed to `Rg` | ||
|
||
## configuration | ||
|
||
|
||
| Setting | Default | Details | ||
| ---------------------|---------------------------|---------- | ||
| g:rg_binary | rg | path to rg | ||
| g:rg_format | %f:%l:%c:%m | value of grepformat | ||
| g:rg_command | g:rg_binary --vimgrep | search command | ||
| g:rg_highlight | false | true if you want matches highlighted | ||
| g:rg_derive_root | false | true if you want to find project root from cwd | ||
| g:rg_root_types | ['.git'] | list of files/dir found in project root | ||
| g:rg_window_location | botright | quickfix window location | ||
|
||
| Setting | Default | Details | ||
| ----------------------|---------------------------|---------- | ||
| g:rg_binary | rg | path to rg | ||
| g:rg_format | %f:%l:%c:%m | value of grepformat | ||
| g:rg_command | g:rg_binary --vimgrep | search command | ||
| g:rg_highlight | false | true if you want matches highlighted | ||
| g:rg_highlight_type | `identifier` | if `rg_highlight` is set, use this syntax color to highlight the result | ||
| g:rg_derive_root | false | true if you want to find project root from cwd | ||
| g:rg_root_types | ['.git'] | list of files/dir found in project root | ||
| g:rg_window_location | botright | quickfix window location | ||
|
||
## misc | ||
|
||
Show root search dir | ||
|
||
:RgRoot | ||
```vim | ||
:RgRoot | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters