Skip to content

Instantly share code, notes, and snippets.

@rmporsch
Last active October 1, 2015 14:40
Show Gist options
  • Save rmporsch/94cbb744d5827fa1bb65 to your computer and use it in GitHub Desktop.
Save rmporsch/94cbb744d5827fa1bb65 to your computer and use it in GitHub Desktop.
speed up ctrp
" Ignore some folders and files for CtrlP indexing
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.yardoc\|public$|log\|tmp$',
\ 'file': '\.so$\|\.dat$|\.DS_Store$'
\ }
" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher
if executable('ag')
" 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
let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
\ --ignore .git
\ --ignore .svn
\ --ignore .hg
\ --ignore .DS_Store
\ --ignore "**/*.pyc"
\ -g ""'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment