vimPlugins.vim-ripgrep/README.md
2020-03-16 17:24:32 -04:00

29 lines
1 KiB
Markdown

# vim-ripgrep
```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 the `rg` binary
| `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
```vim
:RgRoot
```