gabrielelana / vim-markdown

Markdown for Vim: a complete environment to create Markdown files with a syntax highlight that doesn't suck!
MIT License
741 stars 58 forks source link

RMarkdown integration #48

Closed hoBossphdT closed 8 years ago

hoBossphdT commented 8 years ago

Hi,

Very useful tool, thanks. Just a short question. Is it possible to edit R chunks from Rmarkdown / Swave files as markdown code blocks?. The syntax is slightly different, for example:

Some R code

When I type e over the chunk above I've got just the current line written in the tmp file, instead of the entire chunk. Besides, the tmp file is parsed as markdown file, instead of R file.

Thanks in advance.

Diego.

gabrielelana commented 8 years ago

@diegodiazd now it should work 😄

hoBossphdT commented 8 years ago

Thanks @gabrielelana :). R blocks from Rmarkdown/Sweave work perfectly. Just a little detail although. In regular markdown blocks, the syntax is not loaded in the tmp file. For instance:

print "hello world"

is opened as a regular markdown, not as a python file.

gabrielelana commented 8 years ago

@diegodiazd Thanks! It's a regression, I don't have automatic tests for this feature (too complex), fixed with 21fbfe1bb1a182f88146f76a426b17a976be96b2

hoBossphdT commented 8 years ago

Thanks @gabrielelana ;)