Doing some much needed tweaks to ctrlp

+ ignore node_modules directory
+ set file mode to two, so it sets the PWD to the closest ancestor with
.git, .hg, .svn, etc.
This commit is contained in:
Nick Nisi
2012-08-01 15:31:05 -05:00
parent 5884c538b1
commit 3f5a776780

View File

@@ -275,7 +275,13 @@ nmap <silent> <leader>t :CtrlP<cr>
nmap <silent> <leader>r :CtrlPBuffer<cr>
" CtrlP ignore patterns
let g:ctrlp_custom_ignore = '\.git$|\.hg$|\.svn$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|node_modules$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$'
\ }
" search the nearest ancestor that contains .git, .hg, .svn
let g:ctrlp_working_path_mode = 2
" vim-fugitive mappings
nmap <leader>gb :Gblame<cr>