Fast ctrlp
Use git ls-files
on git repos and silver searcher (ag) by default by adding this to your ~/.vimrc
let g:ctrlp_user_command = {
\ 'types': {
\ 1: ['.git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'],
\ },
\ 'fallback': 'ag %s -l --nocolor --hidden -g ""'
\ }
Written by Daniel Cadenas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#