Skip to content

Instantly share code, notes, and snippets.

@TaurusOlson
Created February 24, 2013 14:36
Show Gist options
  • Save TaurusOlson/5024061 to your computer and use it in GitHub Desktop.
Save TaurusOlson/5024061 to your computer and use it in GitHub Desktop.
A simple command for running Processing from Vim.
" 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