Remove CommandT and rebind ,t to CtrlP plugin
This commit is contained in:
@@ -2,4 +2,30 @@
|
||||
" 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'
|
||||
|
||||
" Additional mapping for buffer search
|
||||
nnoremap ,b :CtrlPBuffer<cr>
|
||||
nnoremap <C-b> :CtrlPBuffer<cr>
|
||||
|
||||
" 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]'
|
||||
map ,jm :CtrlP app/models<CR>
|
||||
map ,jc :CtrlP app/controllers<CR>
|
||||
map ,jv :CtrlP app/views<CR>
|
||||
map ,jh :CtrlP app/helpers<CR>
|
||||
map ,jl :CtrlP lib<CR>
|
||||
map ,jp :CtrlP public<CR>
|
||||
map ,js :CtrlP spec<CR>
|
||||
map ,jf :CtrlP fast_spec<CR>
|
||||
map ,jt :CtrlP test<CR>
|
||||
map ,jd :CtrlP db<CR>
|
||||
map ,jC :CtrlP config<CR>
|
||||
map ,jV :CtrlP vendor<CR>
|
||||
map ,jF :CtrlP factories<CR>
|
||||
|
||||
Reference in New Issue
Block a user