Permalink
Browse files

add git ls-files for .gitignore features. ignoring compiled resources

  • Loading branch information...
1 parent 254fa01 commit 8cc110567166daa7f648f52ecd0e663e70d0e8e6 @cpdean committed Jan 13, 2014
Showing with 9 additions and 2 deletions.
  1. +9 −2 .vimrc
View
11 .vimrc
@@ -78,11 +78,18 @@ set encoding=utf-8 " Necessary to show Unicode glyphs
" ctrl p stuff
let g:ctrlp_custom_ignore = {
- \ 'dir': '\v([\/]\.(git|hg|svn)|node_modules)$',
+ \ 'dir': '\.git$\|\.hg$\|.svn$\|node_modules$\|\.bin$',
\ 'file': '\v\.(exe|so|dll|class|)$',
- \ 'link': 'some_bad_symbolic_links',
\ }
+let g:ctrlp_user_command = {
+ \ 'types': {
+ \ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],
+ \ 2: ['.hg', 'hg --cwd %s locate -I .'],
+ \ },
+ \ 'fallback': 'find %s -type f'
+\ }
+
" Unfuck my screen
noremap <leader>r :syntax sync fromstart<cr>:redraw!<cr>

0 comments on commit 8cc1105

Please sign in to comment.