diff options
Diffstat (limited to '.vim/plugin')
-rw-r--r-- | .vim/plugin/fzf.vim | 5 |
1 files changed, 5 insertions, 0 deletions
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(<q-args>), 1, + \ fzf#vim#with_preview(), <bang>0) + noremap <leader>ff :FzfFiles<CR> noremap <leader>fgf :FzfGFiles<CR> noremap <leader>fbf :FzfBuffers<CR> |