Config and Shell Integration/Open ripgrep results in Vim quickfix

Feed matches into an editor workflow.

Section: Git and toolchain workflows

Open ripgrep results in Vim quickfix

bash
bash
vim -q <(rg --vimgrep 'TODO' .)
Explanation

`--vimgrep` formats output specifically for Vim quickfix and similar tools.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Git and toolchain workflows
Search tracked files only
Restrict ripgrep to files known to git.
OpenIn sheetbashsame section
Search only changed files
Pipe a changed-file list into ripgrep.
OpenIn sheetbashsame section
Find candidate files with fd, then search with rg
Combine fast file discovery with fast content search.
OpenIn sheetbashsame section
Use ripgrep for live fuzzy-finder reloads
Power an interactive search UI in fzf.
OpenIn sheetbashsame section
Point ripgrep at a config file
Set a path that ripgrep reads for default arguments.
OpenIn sheetbash1 tag match
Emit vimgrep-style results
Print `file:line:column:text` output for editors.
OpenIn sheetbash1 tag match