nmap gs (GrepperOperator) xmap gs (GrepperOperator) nnoremap [grepper] " 'a' is for ack / ag -- 'g' is taken by git and go nmap a [grepper] nnoremap [grepper]c :Grepper -dir cwd nnoremap [grepper]f :Grepper -dir file " 'g'repper 't'ab " it's unlikely I use operators with this, so implementing this simple xnoremap gt :call grepper_newtab() function! s:grepper_newtab() abort let w = getregion(getpos("'<"), getpos("'>"))[0] tabnew augroup vimrc_grepper-newtab autocmd! autocmd User Grepper call s:grepper_newtab_after() augroup END execute "Grepper -noprompt -dir cwd -query " . w endfunction function! s:grepper_newtab_after() abort if !empty(getloclist(0)) lfirst endif augroup vimrc_grepper-newtab autocmd! augroup END endfunction