Skip to content

Instantly share code, notes, and snippets.

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 hectorperez/a1536dc6879536366a88 to your computer and use it in GitHub Desktop.
Save hectorperez/a1536dc6879536366a88 to your computer and use it in GitHub Desktop.
Running Specs from Vim, Sent to tmux via Tslime
<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