Browse Source

tweak ctrlp to use find command

Kyle P Davis 10 years ago
parent
commit
46ec2af195
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .vimrc

+ 1 - 0
.vimrc

@@ -63,6 +63,7 @@ let g:indent_guides_guide_size = 1
 Plug 'lilydjwg/colorizer'  " colorize CSS inline
 
 Plug 'kien/ctrlp.vim'  " fuzzy file matcher / opener
+let g:ctrlp_user_command="find '%s' ! -wholename '*/.git/*' ! -wholename '*/node_modules/*' ! -wholename '*/report/*' -type f"
 
 Plug 'fisadev/vim-ctrlp-cmdpalette'  " fuzzy command matcher / runner
 "TODO: detect SHIFT?: map <Shift><C-p> :CtrlPCmdPalette<CR>