Skip to content

Instantly share code, notes, and snippets.

@Contejious
Created March 1, 2012 16:07
Show Gist options
  • Save Contejious/1950857 to your computer and use it in GitHub Desktop.
Save Contejious/1950857 to your computer and use it in GitHub Desktop.
vimrc mocha
:let g:session_autoload = 0
map <leader>t :echo system("osascript ~/sendCommand.scpt specs_local \"cd " . getcwd() . "\nwhile [ ! -f test/mocha.opts ]; do cd ..; done\nclear\n mocha -R spec " . expand("%:p:h") . "/**/*.spec.coffee\n\"")<CR>
map <leader>T :echo system("osascript ~/sendCommand.scpt specs_all \"cd " . getcwd() . "\nwhile [ ! -f test/mocha.opts ]; do cd ..; done\nclear\n mocha -R progress **/*.spec.coffee\n\"")<CR>
map <leader>d :echo system("osascript ~/sendCommand.scpt specs_local \"cd " . getcwd() . "\nwhile [ ! -f test/mocha.opts ]; do cd ..; done\nclear\n mocha debug -R spec " . expand("%:p:h") . "/**/*.spec.coffee\n\" focus")<CR>
map <leader>D :echo system("osascript ~/sendCommand.scpt specs_local \"cd " . getcwd() . "\nwhile [ ! -f test/mocha.opts ]; do cd ..; done\nclear\n mocha -R spec --debug-brk " . expand("%:p:h") . "/**/*.spec.coffee\n\"")<CR>
map <leader><Space>t :echo system("osascript ~/sendZoom.scpt specs_local")<CR>
map <leader><Space>T :echo system("osascript ~/sendZoom.scpt specs_all")<CR>
map <leader>t. :echo system("osascript ~/sendCommand.scpt specs_local \"export PS1=\n cd " . getcwd() . "\nwhile [ ! -f test/mocha.opts ]; do cd ..; done\nclear\n mocha -R spec " . expand("%:p") . "\n\"")<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment