mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-27 12:15:36 +08:00
Use RipGrep in Vim and display results in a quickfix list
https://github.com/vim/vim/pull/8544 introduced a change that displays an error when `nargs` is not defined and/or defined incorrectly. As a user, this will display an error message each time upon starting up. The error shows up as ``` Error detected while processing ~/.vim/plugged/vim-ripgrep/plugin/vim-ripgrep.vim: line 149: E1208: -complete used without -nargs Press ENTER or type command to continue ``` This fix to add `-nargs=?` to each of the `command`s. Fixes #57 |
||
|---|---|---|
| plugin | ||
| LICENSE | ||
| README.md | ||
vim-ripgrep
: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 |
misc
Show root search dir
:RgRoot