This repo contains a syntax file for vim to highlight input files for the reactor physics code Serpent 2 from VTT.
Right now, this is only tested on a linux OS.
Wondering what Serpent 2 is? http://montecarlo.vtt.fi/
- Copy the syntax/serp.vim file into either ~/.vim/syntax/ or <vim_install_directory>/syntax/
- Copy the ftdetect/serp.vim file into either ~/.vim/ftdetect/ or <vim_install_directory>/ftdetect/
- To update, copy over the serp.vim file with the new version.
- Voila! Files ending in ".serp" will have highlighted serpent syntax.
- Follow instructions at Vundle to set up the plugin manager.
- At the proper place in your
.vimrc
place:Plugin 'gridley/serpent2vimsyntax'
- Install by opening Vim and using the command
:PluginInstall
. - Keep up-to-date with the command
:PluginUpdate
. - Voila! Files ending in ".serp" will have highlighted serpent syntax.