dotfiles/nvim/ack.vimrc

13 lines
378 B
Plaintext

if executable('ag')
let g:ackprg = 'ag --vimgrep --smart-case' " Use the_silver_searcher for Ack
noremap <Leader>\ :Ack<Space>
noremap <Leader><Tab> :Ack <C-r><C-w><CR>
" Use Ag over Grep
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
endif