Skip to content

Instantly share code, notes, and snippets.

@takahirojin
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahirojin/9911483 to your computer and use it in GitHub Desktop.
Save takahirojin/9911483 to your computer and use it in GitHub Desktop.
let g:quickrun_config = {}
let g:quickrun_config = {
\ '_': {
\ 'runner' : 'vimproc'
\ },
\}
let g:quickrun_config['ruby.rspec'] = {
\ 'command': 'rspec',
\ 'exec': 'bundle exec %c %s',
\}
let g:quickrun_config.rspecl = {
\ 'type': 'ruby.rspec',
\ 'command': 'rspec',
\ 'exec': 'bundle exec %c %s -l ' . line('.'),
\}
augroup RSpecQuickrun
autocmd!
autocmd BufWinEnter,BufNewFile *_spec.rb set filetype=ruby.rspec
augroup END
nnoremap <Leader>rr :<C-u>QuickRun rspecl<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment