Ⅰ. 插件描述
Create and run processing sketches in Vim. Development repository for vim script 2115.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sophacles/processing'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sophacles/processing'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sophacles/processing'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sophacles/vim-processing
Ⅳ. 文档说明
# Vim processing
Development version of vim script #2115. Originally authored by Szabolcs Horvát, and extended by Erich Heine and others (see below for a full list), this plugin exists to allow vim to replace the Processing IDE to develop sketches.
Features
- Syntax Highlighting for the Processing language: processing.vim will properly highlight sketches, based on the processing keywords.txt file. This includes processing functions and Java types and keywords as well.
- Documentation lookup - pressing
Kin when over a keyword, type or function defined by processing will open a browser to the relevant documentation. (Currently this requires python support compiled into vim) - Integrates with Vim's compiler support. Sketches can be run directly from Vim using the
:makecommand. They are run via theprocessing-javacommand. This tool is used to run sketches outside of the Processing editor, and is supplied with Processing itself. Make sureprocessing-javais in yourPATHbefore trying to run it from vim-processing.
(MacOSX users will need to install the processing-java command from the Processing IDE before using this functionality)
- Folding can be enabled by defining "g:processing_fold".
:let g:processing_fold = 1
For more usage information See :help processing-intro.
Installing
Use your favorite plugin manager, or download processing.zip from vimscripts and unzip it in ~/.vim/
Contributors
The full list of contributors to this project:
- Szabolcs Horvát (@szhorvat)
- Erich Heine (@sophacles)
- Guy John (@rumblesan)
- Richard Gray (@vortura)
- Crazy Master (@crazymaster)
- Vítor Galvão (@vitorgalvao)
License
Copyright (c) the contributors to the project. Distributed under the same terms as Vim itself. See :help license.