Created
January 17, 2012 19:41
-
-
Save hirochachacha/1628404 to your computer and use it in GitHub Desktop.
rspec by quickrun.vim with ansi_buffer
This file contains 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
let g:quickrun_config['rspec/bundle'] = { | |
\ 'type': 'rspec/bundle', | |
\ 'command': 'rspec', | |
\ 'outputter': 'ansi_buffer', | |
\ 'exec': 'bundle exec %c --color --tty %s' | |
\} | |
let g:quickrun_config['rspec/normal'] = { | |
\ 'type': 'rspec/normal', | |
\ 'command': 'rspec', | |
\ 'outputter': 'ansi_buffer', | |
\ 'exec': '%c --color --tty %s' | |
\} | |
function! RSpecQuickrun() | |
let b:quickrun_config = {'type' : 'rspec/bundle'} | |
endfunction | |
autocmd BufReadPost *_spec.rb call RSpecQuickrun() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment