A Vim plugin for the Stan probabilistic programming language.
- Syntax highlighting of Stan types, keywords and built-in functions.
- Automatic indentation consistent the recommended Stan code style.
- Folding via code indentation.
- Autocompletion of Stan keywords and functions via the Vim built-in
omnifunc
.
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.
Run the following from the terminal:
cd ~/.vim/bundle
git clone https://github.com/eigenfoo/stan-vim
Nix users who manage their Vim plugins with Home Manager can grab stan-vim
from nixpkgs:
{ pkgs, ... }:
{
# or programs.neovim.plugins
programs.vim.plugins = with pkgs.vimPlugins; [
stan-vim
# ...
];
}
Copy all files into your ~/.vim
directory.
From Vim:
:help stan
Alternatively, read the documentation page on GitHub.
stan-vim
is distributed under the MIT license. See the license file on
GitHub.