Plug 'mhinz/vim-grepper' " Grepper settings and shortcuts let g:grepper = { \ 'quickfix': 1, \ 'open': 1, \ 'switch': 0, \ 'jump': 0, \ 'tools': ['git', 'rg', 'ag', 'ack', 'pt', 'grep'], \ 'dir': 'repo,cwd' \ } nmap gs (GrepperOperator) xmap gs (GrepperOperator) nmap * :Grepper -cword -noprompt " Override Todo command to use Grepper command! Todo :Grepper -noprompt -query TODO " Make some shortands for various grep programs if executable('rg') command -nargs=+ Rg :GrepperRg endif if executable('ag') command -nargs=+ Ag :GrepperAg endif if executable('ack') command -nargs=+ Ack :GrepperAck endif