diff --git a/.vimrc.bundles b/.vimrc.bundles index a3464df..3502f4c 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -204,17 +204,14 @@ endif noremap f :Files - - command! -bang -nargs=* Rrg - \ call fzf#vim#grep( - \ 'grep -R --line-number --exclude-dir=".git;.svn" --color=always -- '.shellescape(), 1, - \ fzf#vim#with_preview(), 0) " check if ripgrep is installed - if executable('rg') - noremap rg :Rg - else - noremap rg :Rrg + if ! executable('rg') + command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'grep -R --line-number --exclude-dir=".git;.svn" --color=always -- '.shellescape(), 1, + \ fzf#vim#with_preview(), 0) endif + noremap r :Rg " } " neoclide/coc.nvim {