Created
November 6, 2015 13:18
-
-
Save hectorperez/a1536dc6879536366a88 to your computer and use it in GitHub Desktop.
Running Specs from Vim, Sent to tmux via Tslime
This file contains hidden or 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
<leader>t RunCurrentSpecFile | |
<leader>s RunNearestSpec | |
<leader>l RunLastSpec | |
<leader>a RunAllSpecs | |
# Install Vim plugins: vim-rspec and tslime.vim | |
# Add the following to .vimrc: | |
let g:rspec_command = 'call Send_to_Tmux("rspec {spec}\n")' | |
" vim-rspec mappings | |
map <Leader>t :call RunCurrentSpecFile()<CR> | |
map <Leader>s :call RunNearestSpec()<CR> | |
map <Leader>l :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> | |
https://robots.thoughtbot.com/running-specs-from-vim-sent-to-tmux-via-tslime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment