if executable('rg') set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --glob\ !.git set grepformat=%f:%l:%c:%m endif nnoremap g :grep! =expand('')