Jump to common rails dirs with ,jm ,jc ,jv ,jh etc..using CommandT

LustyJuggler ,l[something] deprecated in favor of CommandT
because CommandT does fuzzy matching. Which means you can hit
,jm (jump to model) and fuzzy type a model name. Doing this
matches much more intelligently than a typical commandT call
because it's already constrained to what you want.
This commit is contained in:
yan
2011-12-23 14:13:59 -08:00
parent 476e72ba63
commit 0d51708808
3 changed files with 32 additions and 13 deletions

View File

@@ -6,3 +6,19 @@ let g:CommandTMatchWindowReverse = 1
nmap ,t :CommandT<CR>
nmap ,T :CommandTBuffer<CR>
" Idea from : http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/
" Open CommandT starting from a particular path, making it much
" more likely to find the correct thing first. mnemonic 'jump to [something]'
map ,jm :CommandT app/models<CR>
map ,jc :CommandT app/controllers<CR>
map ,jv :CommandT app/views<CR>
map ,jh :CommandT app/helpers<CR>
map ,jl :CommandT lib<CR>
map ,jp :CommandT public<CR>
map ,js :CommandT spec<CR>
map ,jf :CommandT fast_spec<CR>
map ,jt :CommandT test<CR>
map ,jd :CommandT db<CR>
map ,jC :CommandT config<CR>
map ,jV :CommandT vendor<CR>
map ,jF :CommandT factories<CR>