sponsor Vim development Vim logo Vim Book Ad

OpenGLSL : OpenGL Shading Language syntax script

 script karma  Rating 5/2, Downloaded by 930  Comments, bugs, improvements  Vim wiki

created by
Adam Butcher
 
script type
syntax
 
description
A syntax script for builtin functions, uniform variables, constants and types for the OpenGL Shading Language V1.1 (http://www.opengl.org/documentation/oglsl.html)
 
install details
drop gls.vim into your ~/.vim/syntax/ directory and add something like:

     autocmd BufNewFile,BufRead *.vp,*.fp,*.vert,*.frag,*.shd,*.gls set filetype=gls cindent comments=sr:/*,mbl:*,ex:*/,://

to your .vimrc

Alternatively install into the $VIMRUNTIME/syntax/ directory and add the above rule to $VIMRUNTIME/filetype.vim.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
gls.vim 0.12 2005-02-26 6.0 Adam Butcher Removed arrayof operator bug and suggested more reasonable file extensions.
gls.vim 0.11 2005-02-26 6.0 Adam Butcher Added components rgba and stpq.
gls.vim 0.1 2005-02-26 6.0 Adam Butcher Fixed typo gl_vertex.
ip used for rating: 18.216.94.152

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github