aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/grep.vim
blob: 3d80ebbc3195d2eb0c601662053059cbb69fdf08 (plain)
1
2
3
4
5
6
7
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>
nnoremap <leader>fr :grep!<space>