https://github.com/luisbarrancos/osl-syntax
OSL Vim syntax files
https://github.com/luisbarrancos/osl-syntax
cg openshadinglanguage osl osl-syntax shaders syntax-highlighting vim-syntax
Last synced: 6 months ago
JSON representation
OSL Vim syntax files
- Host: GitHub
- URL: https://github.com/luisbarrancos/osl-syntax
- Owner: luisbarrancos
- Created: 2016-11-28T09:03:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T03:53:17.000Z (about 2 years ago)
- Last Synced: 2023-10-28T03:31:48.106Z (about 2 years ago)
- Topics: cg, openshadinglanguage, osl, osl-syntax, shaders, syntax-highlighting, vim-syntax
- Language: Vim Script
- Size: 393 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# osl-syntax
### About osl-syntax
A [Vim][1] syntax highlighting file for [OpenShadingLanguage][2] and basic configuration files for a dark grey theme, automagical file detection for OSL.
Why all this you may ask? It does provides immediate visual cues, i.e, reserved keywords that will trigger a OSLC compiler fail, and hopefully will reduce eyestrain.
### Installing
Copy the .vim syntax file to your ~/.vim/syntax directory, and the .vimrc to your ~.
For more information on creating, modifying and installing [Vim][1] [syntax highlighting][3] files, visit [this link][4]
#### Requirements
[Vim][1] obviously, and the vimrc configuration file is set for [OmniCompletion][5], which requires [Ctags][6]. Depending on how complex your shader library is, it might be worth it. You can create your [ctags][6] file by running it with
```
ctags –R --c++-kinds=+p --fields=+iaS --extra=+q
```
Then copy it to your ~/.vim/tags/ directory.
The vimrc file is using the [Liberation][7] fonts. If you use [Fedora][8], install via
```
sudo dnf install liberation-mono-fonts
```
### Screenshots

[1]: http://www.vim.org/
[2]: https://github.com/imageworks/OpenShadingLanguage
[3]: http://vimdoc.sourceforge.net/htmldoc/syntax.html
[4]: http://vim.wikia.com/wiki/Creating_your_own_syntax_files
[5]: http://www.vim.org/scripts/script.php?script_id=1520
[6]: http://ctags.sourceforge.net/
[7]: https://fedorahosted.org/liberation-fonts/
[8]: https://getfedora.org/