It is simply a fork from vim-glsl for glslx highlighting
Vim syntax highlighting for OpenGL Shading Language
glslx synatx highlighting is supported for:
- files with extensions:
.vsh
,.tsh
,.gsh
,.fsh
, and.csh
- files with
.glslx
extension - HTML
<script>
tags withtype
set tox-shader-vertex
orx-shader-fragment
If 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=glslx
or using modeline in your shader files:
// vim: set ft=glslx:
Add to your vimrc
:
Plug 'Eric-Song-Nop/vim-glslx'
Then reload your vimrc
and run :PlugInstall
.