From 1b35237130e9c3e5d1bd20cb40f6013c74f0b925 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 9 Oct 2019 00:34:58 -0400 Subject: try switching to ripgrep --- vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index a02fe2c..f494685 100644 --- a/vimrc +++ b/vimrc @@ -96,14 +96,14 @@ function! s:fzf_files() exe "Files" endif endfunction -command! -bang -nargs=* Ag - \ call fzf#vim#ag(, - \ "--hidden", +command! -bang -nargs=* Rg + \ call fzf#vim#grep('rg --column --line-number --no-heading --color=always --smart-case --no-ignore-messages '.shellescape(), + \ 1, \ 0 ? fzf#vim#with_preview(s:ag_opts, 'up:60%') \ : fzf#vim#with_preview(s:ag_opts, s:horiz_preview_layout, '?'), \ 0) nnoremap t :call fzf_files() -nnoremap ff :Ag +nnoremap ff :Rg nnoremap fh :Helptags nnoremap ft :Filetypes " }}} @@ -174,7 +174,7 @@ let g:startify_list_order = ['dir', 'bookmarks', 'commands'] let g:startify_files_number = 7 let g:startify_commands = [ \ {'t': ['Open file', 'Files']}, - \ {'ff': ['Grep', 'Ag']}, + \ {'ff': ['Grep', 'Rg']}, \ {'fh': ['Help', 'Helptags']}, \ ] let g:startify_change_to_vcs_root = 1 -- cgit v1.2.3-54-g00ecf