Piping RipGrep into FZF

  • ripgrep: recurisive file search for regex patterns
  • fzf: command line fuzzy finder

Setup

brew install fzf ripgrep

In your .vimrc:

command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)

Usage

1) :Find <regex>

2) Narrow results further by filename by entering additional text. Results can be excluded by using !<text>

3) Use enter to select a result to open

4) OR use tab to select multiple results to open into the Vim Quickfix List

Notes mentioning this note