Created
February 24, 2013 14:36
-
-
Save TaurusOlson/5024061 to your computer and use it in GitHub Desktop.
A simple command for running Processing from Vim.
This file contains hidden or 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
" Run procesing from the command line | |
function! RunProcessing() | |
let s:fullpath = expand("%:p:h") | |
let s:splitpath = split(s:fullpath, '/') | |
let s:processing_project = s:splitpath[-1] | |
echo "Launching " .s:processing_project | |
execute "!processing-java --sketch=" .s:fullpath. " --output=/tmp/" .s:processing_project. " --run --force &" | |
endfunction | |
command! -nargs=0 RunProcessing :call RunProcessing() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment