Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
A Vim plugin for the Stan probabilistic programming language.
Vim script Python
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
ftdetect
ftplugin/stan
indent
screenshots
syntax
tests
.gitignore
CODE_OF_CONDUCT.md
LICENSE
README.md

README.md

stan-vim

A Vim plugin for the Stan probabilistic programming language.

Screenshot of stan-vim syntax highlighting

Table of Contents

Features

  1. Syntax highlighting of Stan types, keywords and built-in functions.
  2. Automatic indentation consistent the recommended Stan code style.
  3. Folding via code indentation.
  4. Autocompletion of Stan keywords and functions via the Vim built-in omnifunc.

Installation

Vundle, NeoBundle and VimPlug

For Vundle users, place this in your .vimrc:

Plugin 'eigenfoo/stan-vim'

...then run the following in Vim:

:source %
:PluginInstall

For Vundle versions < 0.10.2, replace Plugin with Bundle above.

For NeoBundle users, replace Plugin with NeoBundle above.

For VimPlug users, replace Plugin with Plug above.

Pathogen

Run the following from the terminal:

cd ~/.vim/bundle
git clone https://github.com/eigenfoo/stan-vim

Manual Installation

Copy all files into your ~/.vim directory.

Documentation

From Vim:

:help stan

Alternatively, read the documentation page on GitHub.

Additional Screenshots

Screenshot of stan-vim syntax highlighting

Screenshot of stan-vim syntax highlighting

Screenshot of stan-vim syntax highlighting

License

stan-vim is distributed under the MIT license. See the license file on GitHub.

You can’t perform that action at this time.