aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/grep.vim
blob: 0720e360db7589d480d323e820f4401a2611b365 (plain)
1
2
3
4
5
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>