Bunch of helper files for the Slurm resource manager
The Vim syntax file renders the Slurm batch submission scripts easier to read and to spot errors in the submission options.
As submission scripts are indeed shell scripts, and all Slurm options are actually Shell comments, it can be difficult to spot errors in the options.
This syntax file allows vim to understand the Slurm option and highlight them accordingly. Whenever possible, the syntax rules check the validity of the options and put in a special color what is not recognized as a valid option, or valid parameters values.
Installation
Under Linux or MacOS, simply copy the file in the directory
.vim/after/syntax/sh/
or whatever shell other than sh you prefer.
The syntax file is then read and applied on a Shell script after the usual syntax file has been processed.
Known issues
The Bash completion script offers completion for Slurm commands.
At present the following Slurm commands are considered
Instalation
Simply source the script in your .bashrc or .profile
Knwon issues
Keyword arguments are not auto-compelted beyond the first one.