From 3d457e90df3b56d6cb904bca7b2d3849eab4c9b1 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 24 Mar 2016 10:41:23 -0700 Subject: [PATCH] Update vim-grepper settings and add new motions --- vim/rc/plugins.rc.vim | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/vim/rc/plugins.rc.vim b/vim/rc/plugins.rc.vim index f0a2469..978d2cb 100644 --- a/vim/rc/plugins.rc.vim +++ b/vim/rc/plugins.rc.vim @@ -63,18 +63,16 @@ let g:grepper = { \ 'jump': 0, \ 'tools': ['ag', 'ack', 'git', 'pt', 'grep'] \ } -command! -nargs=* -complete=file Grep Grepper! -tool ag -query -nmap * :Grep'\b\b' +nmap gs (GrepperOperator) +xmap gs (GrepperOperator) +nmap * :Grepper -cword -noprompt +command! Todo Grepper -noprompt -query TODO if executable('ag') set grepprg=ag\ --nogroup\ --nocolor - command! -nargs=* -complete=file Ag Grepper! -tool ag -query - nmap * :Ag'\<\>' endif if executable('ack') - command! -nargs=* -complete=file Ack Grepper! -tool ack -query - nmap * :Ack'\b\b' + set grepprg=ack endif -command! Todo Grep TODO " }} vim-grepper " }} Fuzzy Find