Skip to content

Instantly share code, notes, and snippets.

@eightbitraptor
Created October 19, 2011 10:40
Show Gist options
  • Save eightbitraptor/1297946 to your computer and use it in GitHub Desktop.
Save eightbitraptor/1297946 to your computer and use it in GitHub Desktop.
My 2 favourite config lines ever
autocmd BufRead,BufNewFile *_spec.rb
\ map ;t :w\|:!rspec --no-color %<cr>
autocmd BufRead,BufNewFile *_test.rb
\ map ;t :w\|:!ruby -Ilib %<cr>
autocmd BufRead,BufNewFile *_spec.rb
\ map ;t :w\|:!rspec --no-color %<cr>
autocmd BufRead,BufNewFile *_test.rb
\ map ;t :w\|:!ruby -r'minitest/autorun' %<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment