Last active
August 29, 2015 13:57
-
-
Save takahirojin/9911483 to your computer and use it in GitHub Desktop.
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 = {} | |
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