# \`stan-vim\`: A Vim plugin for Stan

**URL:** <https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876>\
**Category:** Publicity\
**Created:** [November 13, 2019, 1:07am UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876 "2019-11-13T01:07:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eigenfoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/eigenfoo/32/6295_2.png) [@eigenfoo](https://discourse.mc-stan.org/u/eigenfoo)\
**Post date:** [November 13, 2019, 1:07am UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/1 "2019-11-13T01:07:40Z")

</div>

I made a Vim plugin for Stan!

I wasn’t happy with the syntax highlighting provided by existing Vim plugins (they also looked out of date and thinly maintained…), so I just went ahead, learnt a truckload of Vimscript, and made my own.

If you’re a Vim user, please check it out! I’ve included project links and screenshots below.

**Links:**

GitHub: [https://github.com/eigenfoo/stan-vim](https://github.com/eigenfoo/stan-vim)  
Vim Online: [https://www.vim.org/scripts/script.php?script\_id=5835](https://www.vim.org/scripts/script.php?script_id=5835)

**Screenshots:**

 ![](https://raw.githubusercontent.com/eigenfoo/stan-vim/master/screenshots/screenshot0.png)  
 ![](https://raw.githubusercontent.com/eigenfoo/stan-vim/master/screenshots/screenshot1.png)  
 ![](https://raw.githubusercontent.com/eigenfoo/stan-vim/master/screenshots/screenshot2.png)  
 ![](https://raw.githubusercontent.com/eigenfoo/stan-vim/master/screenshots/screenshot3.png)

---

<div class="post-metadata">

**Author:** ![bbbales2](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bbbales2/32/77_2.png) [@bbbales2](https://discourse.mc-stan.org/u/bbbales2)\
**Post date:** [November 13, 2019, 12:59pm UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/2 "2019-11-13T12:59:30Z")

</div>

Very cool, thanks for doing this!

---

<div class="post-metadata">

**Author:** ![eigenfoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/eigenfoo/32/6295_2.png) [@eigenfoo](https://discourse.mc-stan.org/u/eigenfoo)\
**Post date:** [November 13, 2019, 11:35pm UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/3 "2019-11-13T23:35:03Z")

</div>

Of course! Glad to contribute.

---

<div class="post-metadata">

**Author:** ![xiehw](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/xiehw/32/7352_2.png) [@xiehw](https://discourse.mc-stan.org/u/xiehw)\
**Post date:** [November 14, 2019, 2:04am UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/4 "2019-11-14T02:04:05Z")

</div>

This is dope and came for me at a really time point. Much appreciation.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [November 14, 2019, 3:02am UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/5 "2019-11-14T03:02:04Z")

</div>

@eigenfoo Thanks for doing/sharing this! Do you want us to link to this from the _Stan Language Syntax Aware Editors_ section on the Stan website? Right now that’s at the bottom of the [Interfaces](https://mc-stan.org/users/interfaces/) page (but it should probably get its own page when we redo the website).

---

<div class="post-metadata">

**Author:** ![eigenfoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/eigenfoo/32/6295_2.png) [@eigenfoo](https://discourse.mc-stan.org/u/eigenfoo)\
**Post date:** [November 14, 2019, 3:07am UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/6 "2019-11-14T03:07:18Z")

</div>

@jonah That would be really helpful! I could submit a PR for that too. Am I right in thinking that it’s just a one-line change in [this `stan-dev.github.io` file](https://github.com/stan-dev/stan-dev.github.io/blob/master/users/interfaces/index.md)? If so, (and there’s a green light from the Stan devs) I’ll get around to it sometime tomorrow.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [November 14, 2019, 3:24am UTC](https://discourse.mc-stan.org/t/stan-vim-a-vim-plugin-for-stan/11876/7 "2019-11-14T03:24:54Z")

</div>

Yeah that’s the right file. A PR would be great whenever you want!
