Created
March 26, 2012 22:10
-
-
Save semanticart/2210146 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" within a migration, do :Rredo | |
" the R* naming convention is to be consistent with rails-vim commands | |
function! Rredo() | |
let l:migration_version = matchstr(expand('%:p'), "\\d\\+") | |
call Send_to_Tmux("rake db:migrate:redo VERSION=" . l:migration_version . " --trace && rake db:test:prepare --trace\n") | |
endfunction | |
command! Rredo call Rredo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all vimscript tips welcome.