Skip to content

Instantly share code, notes, and snippets.

@chrismcg
Created January 20, 2010 23:40
Show Gist options
  • Save chrismcg/282423 to your computer and use it in GitHub Desktop.
Save chrismcg/282423 to your computer and use it in GitHub Desktop.
function! Run_shitty_tests
silent exe "!truncate log/test.log"
let old_make = &makeprg
let test_command = "ruby -I <some libs> "
let &makeprg = test_command.expand("%")
exe "make!"
let &makeprg = old_make
endfunction
nnoremap <C-c>c :call Run_shitty_tests<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment