mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 04:27:36 +00:00
Ag cleanup
This commit is contained in:
parent
be0a6c50d2
commit
8dce970b22
@ -65,14 +65,15 @@ let g:grepper = {
|
|||||||
\ }
|
\ }
|
||||||
command! -nargs=* -complete=file Grep Grepper! -tool ag -query <args>
|
command! -nargs=* -complete=file Grep Grepper! -tool ag -query <args>
|
||||||
nmap <leader>* :Grep<Space>'\b<c-r><c-W>\b'<CR>
|
nmap <leader>* :Grep<Space>'\b<c-r><c-W>\b'<CR>
|
||||||
|
if executable('ag')
|
||||||
|
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
|
||||||
if executable('ack')
|
if executable('ack')
|
||||||
command! -nargs=* -complete=file Ack Grepper! -tool ack -query <args>
|
command! -nargs=* -complete=file Ack Grepper! -tool ack -query <args>
|
||||||
nmap <leader>* :Ack<Space>'\b<c-r><c-W>\b'<CR>
|
nmap <leader>* :Ack<Space>'\b<c-r><c-W>\b'<CR>
|
||||||
endif
|
endif
|
||||||
if executable('ag')
|
|
||||||
command! -nargs=* -complete=file Ag Grepper! -tool ag -query <args>
|
|
||||||
nmap <leader>* :Ag<Space>'\<<c-r><c-W>\>'<CR>
|
|
||||||
endif
|
|
||||||
command! Todo Grep TODO
|
command! Todo Grep TODO
|
||||||
" }} vim-grepper
|
" }} vim-grepper
|
||||||
" }} Fuzzy Find
|
" }} Fuzzy Find
|
||||||
|
@ -24,8 +24,6 @@ nnoremap <leader>m :CtrlPMRUFiles<CR>
|
|||||||
|
|
||||||
" Special stuff for The Silver Searcher
|
" Special stuff for The Silver Searcher
|
||||||
if executable('ag')
|
if executable('ag')
|
||||||
" use ag
|
|
||||||
set grepprg=ag\ --nogroup\ --nocolor
|
|
||||||
" use ag for CtrlP
|
" use ag for CtrlP
|
||||||
let g:ctrlp_user_command = 'ag %s -l --nocolor --nogroup -g ""'
|
let g:ctrlp_user_command = 'ag %s -l --nocolor --nogroup -g ""'
|
||||||
" ag is fast enough we don't need cache
|
" ag is fast enough we don't need cache
|
||||||
|
Loading…
Reference in New Issue
Block a user