Skip to content

Commit

Permalink
fix ctrlp to only show git tracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknisi committed Apr 25, 2015
1 parent 37e57a4 commit 3d79317
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vim/vimrc.symlink
Expand Up @@ -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
Expand Down

0 comments on commit 3d79317

Please sign in to comment.