From 432dd88a1c7ff9c69a5574e5a21d5393681b9381 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 8 Sep 2022 12:17:57 +0300 Subject: [PATCH] [vim] ripgrep disable using .gitignore to ignore grepped files --- vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 5dd53ae..6ae285c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -123,11 +123,13 @@ let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.8 } } command! -bang -nargs=* Rg call \fzf#vim#grep('rg \ --hidden + \ --no-ignore \ -g !node_modules/ -g !.git/ \ --column --line-number --no-heading --color=always --smart-case '.shellescape(), \1, \fzf#vim#with_preview({'options': '--exact --delimiter : --nth 4..'}), 0) " is for strict search by default and other unknown stuff is to exclude filenames from search results +nnoremap ag :Rg | " searching for word ander cursor nnoremap b :Buffers nnoremap f :Files