From 178458e89a3e1af37017fa47e0e7ef7771c8c5e2 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 20 Aug 2015 14:54:46 -0700 Subject: [PATCH] Use Grepper instead of ack.vim and ag.vim --- vim/rc/plugins.rc.vim | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/vim/rc/plugins.rc.vim b/vim/rc/plugins.rc.vim index 83721b3..a2e4a67 100644 --- a/vim/rc/plugins.rc.vim +++ b/vim/rc/plugins.rc.vim @@ -49,30 +49,31 @@ nmap gg :GitGutterSignsToggle " }} Git -" Fuzzy Find {{ +" Searching {{ Plug 'ctrlpvim/ctrlp.vim' call s:smart_source_rc('plugins/ctrlp') Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' } -" ag / ack {{ +Plug 'mhinz/vim-grepper' +" vim-grepper {{ +let g:grepper = { + \ 'dispatch': 1, + \ 'quickfix': 1, + \ 'open': 1, + \ 'switch': 0, + \ 'jump': 0, + \ 'tools': ['ag', 'ack', 'git', 'pt', 'grep'] + \ } +command! -nargs=* -complete=file Grep Grepper! -tool ag -query +nmap * :Grep'\b\b' if executable('ag') - Plug 'rking/ag.vim' - " ag.vim {{ - nmap a :Ag - nmap i* :Ag-i'\b\b' - nmap * :Ag'\b\b' - command! Todo Ag! TODO - " }} ag.vim -elseif executable('ack') - Plug 'mileszs/ack.vim' - " ack.vim {{ - nmap a :Ack - nmap i* :Ack-i'\b\b' - nmap * :Ack'\<\>' - command! Todo Ack! TODO - " }} ack.vim + command! -nargs=* -complete=file Ag Grepper! -tool ag -query endif -" }} ag /ack - +if executable('ack') + nmap * :Grep'\<\>' + command! -nargs=* -complete=file Ack Grepper! -tool ack -query +endif +command! Todo Grep TODO +" }} vim-grepper " }} Fuzzy Find " Autocomplete {{