tweaks! aliases! shiiiiite
This commit is contained in:
22
vimrc
22
vimrc
@@ -178,6 +178,7 @@ map <leader>m :vsplit<cr>
|
||||
map <leader>mm :split<cr>
|
||||
|
||||
map <leader>gg :topleft 100 :split Gemfile<cr>
|
||||
map <leader>gr :topleft 100 :split config/routes.rb<cr>
|
||||
|
||||
" Clear the search buffer (highlighting) when hitting return
|
||||
function! MapCR()
|
||||
@@ -243,27 +244,6 @@ endfunction
|
||||
:command! PromoteToLet :call PromoteToLet()
|
||||
:map <leader>pp :PromoteToLet<cr>
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" MAPS TO JUMP TO SPECIFIC COMMAND-T TARGETS AND FILES
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
map <leader>gr :topleft :split config/routes.rb<cr>
|
||||
function! ShowRoutes()
|
||||
" Requires 'scratch' plugin
|
||||
:topleft 100 :split __Routes__
|
||||
" Make sure Vim doesn't write __Routes__ as a file
|
||||
:set buftype=nofile
|
||||
" Delete everything
|
||||
:normal 1GdG
|
||||
" Put routes output in buffer
|
||||
:0r! rake -s routes
|
||||
" Size window to number of lines (1 plus rake output length)
|
||||
:exec ":normal " . line("$") . _ "
|
||||
" Move cursor to bottom
|
||||
:normal 1GG
|
||||
" Delete empty trailing line
|
||||
:normal dd
|
||||
endfunction
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" SWITCH BETWEEN TEST AND PRODUCTION CODE
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Reference in New Issue
Block a user