Skip to content

Instantly share code, notes, and snippets.

@deanobarnett
Last active August 29, 2015 14:14
Show Gist options
  • Save deanobarnett/cd7d9aaecc79ed5e9974 to your computer and use it in GitHub Desktop.
Save deanobarnett/cd7d9aaecc79ed5e9974 to your computer and use it in GitHub Desktop.
Setting up Zeus and Dispatch for Vim

Setup

Firstly remove rspec/autorun from spec helper (It runs tests twice -_-)

gem install zeus
zeus start

Vim

Add these to vimrc

Bundle 'thoughtbot/vim-rspec'
Bundle 'tpope/vim-dispatch'

let g:rspec_command = "compiler rspec | set makeprg=zeus | Make rspec {spec}"
map <Leader>l :call RunNearestSpec()<CR> # Run current line
map <leader>t :call RunCurrentSpecFile()<CR> # Run current spec. It also remembers last spec run when not on spec file

You can also use these commands to start quicker:

  • zeus c
  • zeus s
  • zeus rake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment