Skip to content

Instantly share code, notes, and snippets.

@mgedmin
Last active March 19, 2021 09:06
Show Gist options
  • Save mgedmin/4c50279b90011e239a1a to your computer and use it in GitHub Desktop.
Save mgedmin/4c50279b90011e239a1a to your computer and use it in GitHub Desktop.
ReStructuredText + vim = ?

A list of interesting GH repos:

Vim itself ships a rst.vim maintained by Marshall Ward [email protected] (originally by Nikolai Weibull).

Vim's rst.vim doesn't highlight doctests. I want a highlighter that highlights doctests.

  • mrsipan/vim-rst has a rstDoctestBlock and highlights Python code inside
  • mitsuhiko/vim-rst has a rstDoctestBlock syntax region, no Python highlighting
  • vim-scripts/rest.vim doesn't highlight doctests (but I had a patched version that did)
@dnguyen85
Copy link

This is super useful. Thank you for compiling this.

@marshallward
Copy link

Thanks from me as well. Please do contact me if there's anything missing from vim's rst.vim syntax file. I'll have a look through the doctest highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment