sophacles / vim-processing

Create and run processing sketches in Vim. Development repository for vim script 2115.
149 stars 10 forks source link

Preview the sketch in another screen and don't block the development #41

Open eyworldwide opened 6 years ago

eyworldwide commented 6 years ago

I'm a front end developer. I was used to coding in vim and previewing demo in browser, which is efficient. But when I use vim-processing, I have to stop previewing the sketch when i write code, vice versa. Can anyone tell me how to code and preview in parallel ?

fturcheti commented 6 years ago

In Vim 8 / Neovim, you can run make asynchronously with a plugin like AsyncRun. With this plugin and the command below in your .vimrc, you just have to call :Make to trigger processing-java in the background.

command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ <args>

This way you're able to code and preview the result in parallel.

eyworldwide commented 6 years ago

It doesn't work in MacVim...thank you all the same!