coyotebush / vim-pweave

Syntax highlighting support for Pweave files
MIT License
2 stars 1 forks source link

Pandoc, ReStructuredText support? #1

Open naught101 opened 9 years ago

naught101 commented 9 years ago

Pweave also supports pandoc and rst formats. Is there any plan to incorporate these in this plugin? If you don't have the time for it, do you have any idea approximately how long it might take?

coyotebush commented 9 years ago

Probably just a matter of swapping out the tex syntax for another, especially if the file extension is sufficient to distinguish between the variants. I'm not likely to try it soon, but would welcome a pull request.

naught101 commented 9 years ago

Hrm... for markdown, this can be avoided entirely by using vim-pandoc and adding this to your .vimrc:

    au BufNewFile,BufReadPost *.Pmd,*.pmd,*.mdw set filetype=pandoc
    au BufNewFile,BufReadPost *.Pmd,*.pmd,*.mdw PandocHighlight python

So maybe it's not worth adding markdown support. Not sure about rst.