dotfiles/nvim/ack.vimrc

13 lines
378 B
Plaintext
Raw Normal View History

2021-07-07 13:28:00 -05:00
if executable('ag')
let g:ackprg = 'ag --vimgrep --smart-case' " Use the_silver_searcher for Ack
2021-07-12 15:50:27 -05:00
noremap <Leader>\ :Ack<Space>
noremap <Leader><Tab> :Ack <C-r><C-w><CR>
2021-07-07 13:28:00 -05:00
" 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