From 3f5a7767806400420434b3a1312aa8585110e4de Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Wed, 1 Aug 2012 15:31:05 -0500 Subject: [PATCH] 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. --- vim/vimrc.symlink | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index aa85b60..b8b3555 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -275,7 +275,13 @@ nmap t :CtrlP nmap r :CtrlPBuffer " 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 gb :Gblame