Skip to content

Instantly share code, notes, and snippets.

@darrylhebbes
Created September 18, 2017 08:31
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrylhebbes/4cc1b0995c265e8e08509b48954642c6 to your computer and use it in GitHub Desktop.
Save darrylhebbes/4cc1b0995c265e8e08509b48954642c6 to your computer and use it in GitHub Desktop.
Using ripgrep with VIM CtrlP plugin
" If on Mac run:
" brew install ripgrep
" Install CtrlP of course
" Plug 'ctrlpvim/ctrlp.vim'
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 0
else
let g:ctrlp_clear_cache_on_exit = 0
endif
@amacfie
Copy link

amacfie commented Sep 25, 2020

Note that you may have to clear the Ctrl P cache once after setting these options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment