Since I am using Sphinx with autodoc I would like to have my vim highlight python docstrings with ReST syntax. Is that possible?
Searching with google yielded only one usable result (I was surprised not to find more though):
http://www.liafa.univ-paris-diderot.fr/~labbe/blogue/2011/06/rest-syntax-highlighting-for-sage-docstrings-in-vim/
But this solution seems to have some circular dependency which causes my vim to complain with infinite error messages... dunno how to solve that :/
On Stackoverflow I found this one:
Vim syntax highlighting of doxygen style docstrings in Python
But I have no idea how to adapt that either.
Any suggestions?
Thanks in advance :)
let g:riv_python_rst_hl=1it does what I want.