Vim runtime files for OpenGL Shading Language
288
stars
25
commits
Vim Script
primary language
Jun 15, 2024
updated
Vim syntax highlighting for OpenGL Shading Language
GLSL synatx highlighting is supported for:
.vert, .tesc, .tese, .geom, .frag, and .comp.glsl extension<script> tags with type set to x-shader-vertex or x-shader-fragmentIf you need support highlighting in files with other extensions (e.g. .vs and .fs) you can add it using autocommand:
" in your .vimrc (_vimrc for Windows)
autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl
or using modeline in your shader files:
// vim: set ft=glsl:
Add to your vimrc:
Plug 'tikhomirov/vim-glsl'
Then reload your vimrc and run :PlugInstall.
Add to your vimrc:
Plugin 'tikhomirov/vim-glsl'
Then reload your vimrc and run :PluginInstall.
$ cd ~/.vim/bundle
$ git clone https://github.com/tikhomirov/vim-glsl
Then run :Helptags to generate help tags.
This plugin contributes to vim-polyglot language pack. Please refer to its installation instructions for more details.
Copy all files to your $HOME/.vim ($HOME\vimfiles\ on Windows) directory.
Vim Script
100.0%
Vim runtime files for OpenGL Shading Language
288
stars
25
commits
Vim Script
primary language
Jun 15, 2024
updated
Vim syntax highlighting for OpenGL Shading Language
GLSL synatx highlighting is supported for:
.vert, .tesc, .tese, .geom, .frag, and .comp.glsl extension<script> tags with type set to x-shader-vertex or x-shader-fragmentIf you need support highlighting in files with other extensions (e.g. .vs and .fs) you can add it using autocommand:
" in your .vimrc (_vimrc for Windows)
autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl
or using modeline in your shader files:
// vim: set ft=glsl:
Add to your vimrc:
Plug 'tikhomirov/vim-glsl'
Then reload your vimrc and run :PlugInstall.
Add to your vimrc:
Plugin 'tikhomirov/vim-glsl'
Then reload your vimrc and run :PluginInstall.
$ cd ~/.vim/bundle
$ git clone https://github.com/tikhomirov/vim-glsl
Then run :Helptags to generate help tags.
This plugin contributes to vim-polyglot language pack. Please refer to its installation instructions for more details.
Copy all files to your $HOME/.vim ($HOME\vimfiles\ on Windows) directory.
Vim Script
100.0%