blob: 6210a317376dfb34e0f5f44e4d9b67d3439c071b (
plain)
1
2
3
4
5
6
7
8
9
10
|
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>
if maparg('<leader>fr', 'n') == ''
nnoremap <leader>fr :grep!<space>
endif
|