Skip to content

Instantly share code, notes, and snippets.

@cfcosta
Created November 21, 2011 12:25
Show Gist options
  • Save cfcosta/1382500 to your computer and use it in GitHub Desktop.
Save cfcosta/1382500 to your computer and use it in GitHub Desktop.
function! RunSpecs()
if isdirectory('test')
:!./bin/rake test
elseif isdirectory('spec')
:!./bin/rake spec
else
echo "No test directory found."
end
endfunction
nmap ,r :w<cr> :call RunSpecs()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment