Skip to content

Instantly share code, notes, and snippets.

@bookercodes
Forked from v3rt1go/silver-vimrc
Created October 6, 2015 14:52
Show Gist options
  • Save bookercodes/6161cf95d013691d227c to your computer and use it in GitHub Desktop.
Save bookercodes/6161cf95d013691d227c to your computer and use it in GitHub Desktop.
if executable('ag')
" Use Ag over Grep
autocmd VimEnter * set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
unlet g:ctrlp_user_command
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment