Skip to content

Instantly share code, notes, and snippets.

@semanticart
Created March 26, 2012 22:10
Show Gist options
  • Save semanticart/2210146 to your computer and use it in GitHub Desktop.
Save semanticart/2210146 to your computer and use it in GitHub Desktop.
" 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()
@semanticart
Copy link
Author

all vimscript tips welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment