From 8d6b2be60d32417d1e48b2fb4825094d47bf12d5 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 23 May 2018 16:15:54 +0200 Subject: [PATCH] Better ignoring while opening files: nested .git dirs, vim .swp files --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index e027e25..a2ca405 100644 --- a/.vimrc +++ b/.vimrc @@ -133,7 +133,7 @@ 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/*" --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 --glob "!**.git/*" --glob "!*.swp" --color "always" '.shellescape().'| tr -d "\017"', 1, 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