|
|
|
|
|
by covoeus
358 days ago
|
|
Use `cb!` instead of `cb`: rg --vimgrep restore_tool | vim -c cb! -
You might also wanna open the quickfix list by default: rg --vimgrep restore_tool | vim -c cb! -c copen -
You can learn more about how to navigate it using `:h quickfix`. |
|
The quickfix window is so small, so I added the "-c only" option to make it the only window that first pops up. Then made it a function so it's easier to call:
``` vgrep() { rg --vimgrep "$1" | vim -c cb! -c copen -c only - } ```
$> vgrep "restore_tool"