Skip to content

Commit

Permalink
Add vim-rspec
Browse files Browse the repository at this point in the history
Map to <Leader> + :

* rs (run nearest spec)
* rl (run last spec)
* ra (run all specs for the current file)
  • Loading branch information
leejarvis committed Feb 1, 2016
1 parent a2b59b3 commit a99c635
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Plugin 'godlygeek/tabular'
Plugin 'pangloss/vim-javascript'
Plugin 'ervandew/supertab'
Plugin 'keith/swift.vim'
Plugin 'thoughtbot/vim-rspec'

"
" tabs/formatting
set number
set expandtab
Expand Down Expand Up @@ -82,6 +82,9 @@ let g:go_fmt_fail_silently = 1
let g:syntastic_check_on_open = 1
let g:go_highlight_trailing_whitespace_error = 0

" rspec
let g:rspec_runner = "os_x_iterm"

if has("autocmd")
filetype plugin indent on

Expand Down Expand Up @@ -138,6 +141,10 @@ map <Leader>a= :Tab /=<CR>
map <Leader>a, :Tab /,\zs<CR>
map <Leader>a: :Tab /:\zs<CR>
map <Leader>rs :call RunNearestSpec()<CR>
map <Leader>ra :call RunCurrentSpecFile()<CR>
map <Leader>rl :call RunLastSpec()<CR>
" tcomment toggle, current line in normal mode, entire block in visual mode
nmap <Leader>c gcc<CR>
vmap <Leader>c gc<CR>
Expand Down

0 comments on commit a99c635

Please sign in to comment.