Back to Spacevim

SpaceVim lang#processing layer

docs/layers/lang/processing.md

2.4.01.3 KB
Original Source

Available Layers >> lang#processing

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer is for working on Processing sketches. It builds on top of the existing vim plugin sophacles/vim-processing.

Features

  • Syntax highlighting and indent
  • Run sketches asynchonously

Install

You will need to install the processing-java tool. This is best done via the Processing IDE which can be obtained from the processing website. Once you have the IDE, you can select Tools -> install "processing-java".

Layer

To use this configuration layer, update your custom configuration file with:

toml
[[layers]]
  name = "lang#processing"

Key bindings

Key bindingsDescriptions
SPC l rRun your sketch

Code runner

You can build and run your sketch with SPC l r. The sketch to run is decided based on the directory of your current buffer. Note that the sketch is run asynchonously, so you are free to continue editing while it is running.