diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index f737589..8c325f3 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -421,10 +421,12 @@ let g:syntastic_typescript_checkers = ['tslint'] let g:syntastic_javascript_checkers = ['jshint', 'jscs'] " CtrlP ignore patterns -let g:ctrlp_custom_ignore = { - \ 'dir': '\.git$\|node_modules$\|bower_components$\|\.hg$\|\.svn$', - \ 'file': '\.exe$\|\.so$' - \ } +" let g:ctrlp_custom_ignore = { +" \ 'dir': '\.git$\|node_modules$\|bower_components$\|\.hg$\|\.svn$', +" \ 'file': '\.exe$\|\.so$' +" \ } +" only show files that are not ignored by git +let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] " search the nearest ancestor that contains .git, .hg, .svn let g:ctrlp_working_path_mode = 2