Jake Worth

Searching with Ripgrep

December 30, 20191 min read

I’ve been using Ripgrep on my work machine, and for pure performance, it’s tough to beat.

Here are two mappings I’ve set up to replace common search behaviors with with their Ripgrep equivalent. The first uses Ripgrep for Vim searches, and the second uses Ripgrep for :grep command-mode searches.

if executable('rg')
  " Use ripgrep for Vim search
  let g:ackprg = 'rg --vimgrep'

  " Use ripgrep for :grep search
  set grepprg=rg

As a side note, I’m still a huge fan of Ack for more powerful flags and features.

Each week, I write an email about React. It's a collection of quotes, news, conference talks, and documentation curated be me to help you get up to speed on this exploding ecosystem. Join my subscribers today by subscribing to React Explained.

Jake Worth

I'm Jake Worth, a web developer. Home About Now Newsletter