From 3f9644f3bec08002ac1ac51b1166dda7dd99f207 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Wed, 21 Feb 2018 18:37:53 -0500 Subject: [PATCH] Switch to ripgrep --- fzf.vim | 7 +++++++ plug.vim | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fzf.vim b/fzf.vim index 383e065..ec55b10 100644 --- a/fzf.vim +++ b/fzf.vim @@ -18,3 +18,10 @@ let g:fzf_colors = nnoremap f :Files nnoremap b :Buffers nnoremap t :Tags + +command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'rg --column --line-number --no-heading --color=always '.shellescape(), 1, + \ 0 ? fzf#vim#with_preview('up:60%') + \ : fzf#vim#with_preview('right:50%:hidden', '?'), + \ 0) diff --git a/plug.vim b/plug.vim index 0d8395c..3775b9c 100644 --- a/plug.vim +++ b/plug.vim @@ -6,9 +6,9 @@ Plug 'editorconfig/editorconfig-vim' Plug 'scrooloose/nerdtree' " syntax checking on steroids Plug 'scrooloose/syntastic' -" integrate ag, especially to be able to open matches, hugely useful for +" integrate ripgrep, especially to be able to open matches, hugely useful for " code aware search -Plug 'rking/ag.vim' +Plug 'jremmen/vim-ripgrep' " lightweight but sophisticated status line Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes'