mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:37:33 +00:00
Update vim-grepper settings and add new motions
This commit is contained in:
parent
9bc754361e
commit
3d457e90df
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user