Uncategorized

Processing v3 From Vim

Since the update to Processing includes a bunch of crazy new stuff I’ve updated my slug for Vim that fires off the currently active sketch.

From ~/.vimrc

autocmd Filetype java nnoremap <F5> :w<CR> :!cd %:p:h && processing-java --sketch=$PWD/ --run <CR> %  

The output directory is now optional which means we don’t need to specify tmp anymore (and it was broken anyway because of “I think” permissions.)

This in combination with the msketch.js node script should be working perfectly just like always.

Bear in mind that if you’re running El Cap’ you must install processing-java using Processing v3.

Leave a Reply

Powered by: Wordpress