g4md3g
Last Updated: February 08, 2017
·
53
· dcadenas
Avatar

Fast ctrlp

vim

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 ""'
      \ }
Say Thanks
Respond