From ee774a65e9823899b3d58f1ada8f065a1d79582b Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 26 Oct 2015 10:24:38 -0700 Subject: [PATCH] Cleanup for Grepper --- vim/rc/plugins.rc.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vim/rc/plugins.rc.vim b/vim/rc/plugins.rc.vim index 30a2078..ea06aba 100644 --- a/vim/rc/plugins.rc.vim +++ b/vim/rc/plugins.rc.vim @@ -65,12 +65,13 @@ let g:grepper = { \ } command! -nargs=* -complete=file Grep Grepper! -tool ag -query nmap * :Grep'\b\b' +if executable('ack') + command! -nargs=* -complete=file Ack Grepper! -tool ack -query + nmap * :Ack'\b\b' +endif if executable('ag') command! -nargs=* -complete=file Ag Grepper! -tool ag -query -endif -if executable('ack') - nmap * :Grep'\<\>' - command! -nargs=* -complete=file Ack Grepper! -tool ack -query + nmap * :Ag'\<\>' endif command! Todo Grep TODO " }} vim-grepper