Skip to content
프로젝트

소개

Vim runtime files for OpenGL Shading Language

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

vim-glsl

Vim syntax highlighting for OpenGL Shading Language

GLSL synatx highlighting is supported for:

  • files with extensions supported by Khronos reference compiler: .vert, .tesc, .tese, .geom, .frag, and .comp
  • files with .glsl extension
  • HTML <script> tags with type set to x-shader-vertex or x-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=glsl

or using modeline in your shader files:

// vim: set ft=glsl:

Supported GLSL Versions

  • OpenGL Shading Language: all versions from 1.10 to 4.50
  • OpenGL ES Shading Language: versions 1.00 and 3.00

Installation

Using VimPlug

Add to your vimrc:

Plug 'tikhomirov/vim-glsl'

Then reload your vimrc and run :PlugInstall.

Using Vundle

Add to your vimrc:

Plugin 'tikhomirov/vim-glsl'

Then reload your vimrc and run :PluginInstall.

Using Pathogen

$ cd ~/.vim/bundle
$ git clone https://github.com/tikhomirov/vim-glsl

Then run :Helptags to generate help tags.

As part of vim-polyglot

This plugin contributes to vim-polyglot language pack. Please refer to its installation instructions for more details.

Manual

Copy all files to your $HOME/.vim ($HOME\vimfiles\ on Windows) directory.

관련 프로젝트 살펴보기

불러오는 중…