diff --git a/.vimrc b/.vimrc index b576383..b268238 100644 --- a/.vimrc +++ b/.vimrc @@ -153,7 +153,16 @@ let g:fzf_colors = " window similar to :Files but will only list files that contain the term " searched " https://medium.com/@crashybang/supercharge-vim-with-fzf-and-ripgrep-d4661fc853d2 -command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!**.git/*" --glob "!*.swp" --color "always" '.shellescape().'| tr -d "\017"', 1, 0) +command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --color "always" '.shellescape().'| tr -d "\017"', 1, 0) + +" Alternative, not enabled for the moment, as it also searches part of the +" file name +command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(), 1, + \ 0 ? fzf#vim#with_preview('up:60%') + \ : fzf#vim#with_preview('right:50%:hidden', '?'), + \ 0) " Simply type ; to search through buffers, leader-o to search through file " names, \t for tags, \c for (Git) commits and \f to search through contents