0

When i am searching :Rg <string> , it is opening the result in FZF buffer. Often the filenames are not displayed fully in it. Also the once escaped the results are gone. I have to do research if need to check the same word again.

but :vim /pattern/g **/* opens the result in quickfix. Is there any way to open Rg result in quickfix window? How to display the full file name in Rg buffer?

Samselvaprabu
  • 13,922
  • 28
  • 113
  • 200

1 Answers1

1

You can tell Vim what external command to use for :help :grep with :help 'grepprg'.

romainl
  • 158,436
  • 18
  • 236
  • 264
  • There is a confusion in adding grepprg. Whether this use Rg only for :grep command or also for :vimgrep command. – Samselvaprabu Oct 28 '20 at 10:18
  • Only `:grep` is concerned by `:help 'grepprg'` but both `:help :grep` and `:help :vimgrep` have the exact same relationship with the quickfix list. – romainl Oct 28 '20 at 15:43