let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$' let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'] " 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 ,t :CtrlP " Additional mapping for buffer search nnoremap ,b :CloseSingleConque:CtrlPBuffer nnoremap :CloseSingleConque:CtrlPBuffer " Cmd-Shift-P to clear the cache nnoremap :ClearCtrlPCache " Idea from : http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/ " Open CtrlP starting from a particular path, making it much " more likely to find the correct thing first. mnemonic 'jump to [something]' map ,ja :CloseSingleConque:CtrlP app/assets map ,jm :CloseSingleConque:CtrlP app/models map ,jc :CloseSingleConque:CtrlP app/controllers map ,jv :CloseSingleConque:CtrlP app/views map ,jh :CloseSingleConque:CtrlP app/helpers map ,jl :CloseSingleConque:CtrlP lib map ,jp :CloseSingleConque:CtrlP public map ,js :CloseSingleConque:CtrlP spec map ,jf :CloseSingleConque:CtrlP fast_spec map ,jd :CloseSingleConque:CtrlP db map ,jC :CloseSingleConque:CtrlP config map ,jV :CloseSingleConque:CtrlP vendor map ,jF :CloseSingleConque:CtrlP factories map ,jT :CloseSingleConque:CtrlP test "Cmd-Shift-(M)ethod - jump to a method (tag in current file) "Ctrl-m is not good - it overrides behavior of Enter nnoremap :CloseSingleConque:CtrlPBufTag