# ankursinha.in/blog

neuroscience/fedora/musings

Wed 02 March 2016

# sli.vim - syntax file for the NEST simulator's SLI language

Posted by ankur in Research (138 words, approximately a 1 minute read)

I've been reading some of NEST's SLI examples to understand the simulation better. I noticed that these files had no syntax highlighting at all which made the code difficult to read. I couldn't find a syntax highlighting file for Vim anywhere so I've begun writing my own. It isn't complete, and I'm sure it's buggy, but it already seems to make reading and writing SLI easier. Here's what it makes an SLI file look like:

## Installation

It's just a syntax file. You can drop it in ~/.vim/syntax/ directory (on Linux) or you can use pathogen and just clone the repository and so on. Once done, add this to your vimrc file:

au BufRead,BufNewFile *.sli set filetype=sli
au FileType sli setl foldenable foldmethod=syntax


The file is hosted on Github. Feel free to open issues, or even better, pull requests ;)