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:
@@ -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>
|
||||
|
||||
@@ -18,17 +18,6 @@ nmap <silent> ,lb \lb
|
||||
" lusty buffer juggler (alternative mapping)
|
||||
nmap <silent> ,lj \lj
|
||||
|
||||
"idea from : http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/
|
||||
" open lusty file explorer from specific rails-friendly places
|
||||
map ,lm :LustyFilesystemExplorer app/models<CR>
|
||||
map ,lc :LustyFilesystemExplorer app/controllers<CR>
|
||||
map ,lv :LustyFilesystemExplorer app/views<CR>
|
||||
map ,lh :LustyFilesystemExplorer app/helpers<CR>
|
||||
map ,ll :LustyFilesystemExplorer lib<CR>
|
||||
map ,lp :LustyFilesystemExplorer public<CR>
|
||||
map ,ls :LustyFilesystemExplorer specs<CR>
|
||||
map ,lf :LustyFilesystemExplorer fast_spec<CR>
|
||||
map ,lt :LustyFilesystemExplorer test<CR>
|
||||
|
||||
let g:LustyJugglerSuppressRubyWarning = 1
|
||||
let g:LustyJugglerAltTabMode = 1
|
||||
|
||||
Reference in New Issue
Block a user