2012-01-26 12:23:08 -08:00
|
|
|
let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$'
|
2012-11-09 13:40:16 -06:00
|
|
|
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others']
|
2012-01-26 12:23:08 -08:00
|
|
|
|
2012-01-24 09:10:43 -08:00
|
|
|
" Default to filename searches - so that appctrl will find application
|
|
|
|
" controller
|
|
|
|
let g:ctrlp_by_filename = 1
|
|
|
|
|
2012-01-24 10:19:23 -08:00
|
|
|
" 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'
|
2013-05-13 10:10:14 -05:00
|
|
|
nnoremap <silent> ,t :CtrlP<CR>
|
2012-01-24 09:10:43 -08:00
|
|
|
|
2012-01-24 10:19:23 -08:00
|
|
|
" Additional mapping for buffer search
|
2012-06-08 13:25:16 -05:00
|
|
|
nnoremap <silent> ,b :CloseSingleConque<CR>:CtrlPBuffer<cr>
|
|
|
|
nnoremap <silent> <C-b> :CloseSingleConque<CR>:CtrlPBuffer<cr>
|
2012-01-24 10:19:23 -08:00
|
|
|
|
|
|
|
" Cmd-Shift-P to clear the cache
|
|
|
|
nnoremap <silent> <D-P> :ClearCtrlPCache<cr>
|
|
|
|
|
|
|
|
" 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]'
|
2012-06-07 13:25:12 -05:00
|
|
|
map ,jm :CloseSingleConque<CR>:CtrlP app/models<CR>
|
|
|
|
map ,jc :CloseSingleConque<CR>:CtrlP app/controllers<CR>
|
|
|
|
map ,jv :CloseSingleConque<CR>:CtrlP app/views<CR>
|
|
|
|
map ,jh :CloseSingleConque<CR>:CtrlP app/helpers<CR>
|
|
|
|
map ,jl :CloseSingleConque<CR>:CtrlP lib<CR>
|
|
|
|
map ,jp :CloseSingleConque<CR>:CtrlP public<CR>
|
|
|
|
map ,js :CloseSingleConque<CR>:CtrlP spec<CR>
|
|
|
|
map ,jf :CloseSingleConque<CR>:CtrlP fast_spec<CR>
|
|
|
|
map ,jd :CloseSingleConque<CR>:CtrlP db<CR>
|
|
|
|
map ,jC :CloseSingleConque<CR>:CtrlP config<CR>
|
|
|
|
map ,jV :CloseSingleConque<CR>:CtrlP vendor<CR>
|
|
|
|
map ,jF :CloseSingleConque<CR>:CtrlP factories<CR>
|
|
|
|
map ,jT :CloseSingleConque<CR>:CtrlP test<CR>
|
2012-05-02 22:41:51 -07:00
|
|
|
|
2012-11-16 12:19:30 -06:00
|
|
|
"Cmd-Shift-(M)ethod - jump to a method (tag in current file)
|
|
|
|
"Ctrl-m is not good - it overrides behavior of Enter
|
|
|
|
nnoremap <silent> <D-M> :CloseSingleConque<CR>:CtrlPBufTag<CR>
|