diff options
Diffstat (limited to '.vim/after/plugin/grep.vim')
-rw-r--r-- | .vim/after/plugin/grep.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.vim/after/plugin/grep.vim b/.vim/after/plugin/grep.vim new file mode 100644 index 0000000..0720e36 --- /dev/null +++ b/.vim/after/plugin/grep.vim @@ -0,0 +1,6 @@ +if executable('rg') + set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --glob\ !.git + set grepformat=%f:%l:%c:%m +endif + +nnoremap <leader><leader>g :grep! <c-r>=expand('<cword>')<cr><cr> |