mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 02:25:11 +01:00
Better ignoring while opening files: nested .git dirs, vim .swp files
This commit is contained in:
2
.vimrc
2
.vimrc
@@ -133,7 +133,7 @@ let g:fzf_colors =
|
|||||||
" window similar to :Files but will only list files that contain the term
|
" window similar to :Files but will only list files that contain the term
|
||||||
" searched
|
" searched
|
||||||
" https://medium.com/@crashybang/supercharge-vim-with-fzf-and-ripgrep-d4661fc853d2
|
" 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(<q-args>).'| tr -d "\017"', 1, <bang>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(<q-args>).'| tr -d "\017"', 1, <bang>0)
|
||||||
|
|
||||||
" Simply type ; to search through buffers, leader-o to search through file
|
" 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
|
" names, \t for tags, \c for (Git) commits and \f to search through contents
|
||||||
|
|||||||
Reference in New Issue
Block a user