glsl.vim


Ⅰ. 插件描述

Syntax file for the OpenGL Shading Language GLSL GLSlang

Ⅱ. 基本信息

创建日期:  2004-06-04
使用用户:  49
Github星:  5
插件作者:  Nathan Cournia

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/glsl-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/glsl-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/glsl-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/glsl.vim

Ⅳ. 文档说明

Syntax file for the OpenGL Shading Language.  The following is highlighted (as defined in the
Orange Book):

  - All gl_ variables
  - All built-in functions
  - All keywords

The syntax file was modified from c.vim, so you can expect that your GLSL shaders
will be highlighted similar to C files.

All reserverd keywords (that GLSL currently does not use) are highlighted as errors.

Keywords: glsl glslang opengl shading language

添加新评论