Skip to content

Instantly share code, notes, and snippets.

@hirochachacha
Created January 17, 2012 19:41
Show Gist options
  • Save hirochachacha/1628404 to your computer and use it in GitHub Desktop.
Save hirochachacha/1628404 to your computer and use it in GitHub Desktop.
rspec by quickrun.vim with ansi_buffer
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