Search code examples
vimripgrepvim-quickfix

Is it possible to display result of Rg into quick fix window?


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?


Solution

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