Skip to content

This repo contains a syntax file for vim to highlight input files for the reactor physics code Serpent 2 from VTT.

Notifications You must be signed in to change notification settings

gridley/serpent2vimsyntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serpent2vimsyntax

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/

How to install

Manually

  1. Copy the syntax/serp.vim file into either ~/.vim/syntax/ or <vim_install_directory>/syntax/
  2. Copy the ftdetect/serp.vim file into either ~/.vim/ftdetect/ or <vim_install_directory>/ftdetect/
  3. To update, copy over the serp.vim file with the new version.
  4. Voila! Files ending in ".serp" will have highlighted serpent syntax.

With Vundle

  1. Follow instructions at Vundle to set up the plugin manager.
  2. At the proper place in your .vimrc place:
    Plugin 'gridley/serpent2vimsyntax'
  3. Install by opening Vim and using the command :PluginInstall.
  4. Keep up-to-date with the command :PluginUpdate.
  5. Voila! Files ending in ".serp" will have highlighted serpent syntax.

Preview:

preview!

About

This repo contains a syntax file for vim to highlight input files for the reactor physics code Serpent 2 from VTT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published