dotar/vim/plugin/settings/command-t.vim
yan 0d51708808 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.
2011-12-23 14:14:55 -08:00

25 lines
798 B
VimL

let g:CommandTMaxHeight = 5
let g:CommandTMatchWindowReverse = 1
" Command-T
" Mapped to ,t
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>