Permalink
Browse files

CtrlP configuration borrowed from YADR

  • Loading branch information...
dlh01 committed Oct 28, 2012
1 parent b139b7f commit 7cbc535181579b7f7d98eb3883ba0857189a366e
Showing with 20 additions and 0 deletions.
  1. +20 −0 vim/plugin/settings/ctrlp.vim
@@ -0,0 +1,20 @@
+" CtrlP configuration borrowed from YADR
+
+let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$'
+
+" Default to filename searches - so that appctrl will find application
+" controller
+let g:ctrlp_by_filename = 1
+
+" We don't want to use Ctrl-p as the mapping because
+" it interferes with YankRing (paste, then hit ctrl-p)
+let g:ctrlp_map = ',t'
+nnoremap <silent> ,t :CtrlPMixed<CR>
+
+" Additional mapping for buffer search
+nnoremap <silent> ,b :CloseSingleConque<CR>:CtrlPBuffer<cr>
+nnoremap <silent> <C-b> :CloseSingleConque<CR>:CtrlPBuffer<cr>
+
+" Cmd-Shift-P to clear the cache
+nnoremap <silent> <D-P> :ClearCtrlPCache<cr>
+

0 comments on commit 7cbc535

Please sign in to comment.