Created
June 5, 2014 13:27
-
-
Save float1251/281aa36c8b225b80973b to your computer and use it in GitHub Desktop.
testを実行するvimscript
This file contains 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
let g:expectpy_path="PROJECT_DIRECTORY" | |
noremap <leader><C-r> :call RunTest() <CR> | |
function! RunTest() | |
let l:cwd = getcwd() | |
:exec "cd ".g:expectpy_path | |
:!python setup.py test | |
:exec "cd ".l:cwd | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment