Update vim-grepper settings and add new motions

This commit is contained in:
ViViDboarder 2016-03-24 10:41:23 -07:00
parent 9bc754361e
commit 3d457e90df
1 changed files with 5 additions and 7 deletions

View File

@ -63,18 +63,16 @@ let g:grepper = {
\ 'jump': 0, \ 'jump': 0,
\ 'tools': ['ag', 'ack', 'git', 'pt', 'grep'] \ 'tools': ['ag', 'ack', 'git', 'pt', 'grep']
\ } \ }
command! -nargs=* -complete=file Grep Grepper! -tool ag -query <args> nmap gs <plug>(GrepperOperator)
nmap <leader>* :Grep<Space>'\b<c-r><c-W>\b'<CR> xmap gs <plug>(GrepperOperator)
nmap <leader>* :Grepper -cword -noprompt<cr>
command! Todo Grepper -noprompt -query TODO
if executable('ag') if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor set grepprg=ag\ --nogroup\ --nocolor
command! -nargs=* -complete=file Ag Grepper! -tool ag -query <args>
nmap <leader>* :Ag<Space>'\<<c-r><c-W>\>'<CR>
endif endif
if executable('ack') if executable('ack')
command! -nargs=* -complete=file Ack Grepper! -tool ack -query <args> set grepprg=ack
nmap <leader>* :Ack<Space>'\b<c-r><c-W>\b'<CR>
endif endif
command! Todo Grep TODO
" }} vim-grepper " }} vim-grepper
" }} Fuzzy Find " }} Fuzzy Find