From 348d2fabc61c4547ea7b90f2aa666fc8c4d6aaf8 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 1 Nov 2019 15:07:19 -0700 Subject: [PATCH] Add support for rg FZF search through file text --- vim/rc/plugins/fzf.rc.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vim/rc/plugins/fzf.rc.vim b/vim/rc/plugins/fzf.rc.vim index 7e0bfae..c598e7d 100644 --- a/vim/rc/plugins/fzf.rc.vim +++ b/vim/rc/plugins/fzf.rc.vim @@ -28,7 +28,11 @@ if !exists('g:ctrlp_in_use') nnoremap b :FZFBuffers nnoremap :FZFBuffers " Find text in files - nnoremap f :FZFAg + if executable('rg') + nnoremap f :FZFRg + elseif executable('ag') + nnoremap f :FZFAg + endif " Find tags nnoremap r :FZFTags " Find buffer tags