From 1415fdb5c4e31e417afae60efd722d9ec0d070da Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 10 Dec 2021 22:53:19 +0800 Subject: Update fzf config --- .vim/plugin/fzf.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.vim/plugin/fzf.vim') diff --git a/.vim/plugin/fzf.vim b/.vim/plugin/fzf.vim index 04aaeda..43522f7 100644 --- a/.vim/plugin/fzf.vim +++ b/.vim/plugin/fzf.vim @@ -1,5 +1,10 @@ let g:fzf_command_prefix = 'Fzf' +command! -bang -nargs=* FzfRg + \ call fzf#vim#grep( + \ 'rg --hidden --column --line-number --no-heading --color=always --smart-case --glob !.git -- '.shellescape(), 1, + \ fzf#vim#with_preview(), 0) + noremap ff :FzfFiles noremap fgf :FzfGFiles noremap fbf :FzfBuffers -- cgit v1.2.3