mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-15 20:46:27 +00:00
4f41d766a8
Also added Goyo
21 lines
552 B
VimL
21 lines
552 B
VimL
Plug 'mhinz/vim-grepper'
|
|
" Grepper settings and shortcuts
|
|
let g:grepper = {
|
|
\ 'dispatch': 1,
|
|
\ 'quickfix': 1,
|
|
\ 'open': 1,
|
|
\ 'switch': 0,
|
|
\ 'jump': 0,
|
|
\ 'tools': ['ag', 'ack', 'git', 'pt', 'grep']
|
|
\ }
|
|
nmap gs <plug>(GrepperOperator)
|
|
xmap gs <plug>(GrepperOperator)
|
|
nmap <leader>* :Grepper -cword -noprompt<cr>
|
|
command! Todo Grepper -noprompt -query TODO
|
|
if executable('ag')
|
|
set grepprg=ag\ --nogroup\ --nocolor
|
|
endif
|
|
if executable('ack')
|
|
set grepprg=ack
|
|
endif
|