From 6f1f2894cbfd11af964c613bcd96608a77a9c17a Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 23 Jan 2020 22:18:50 +0300 Subject: [PATCH] Use HTML comment syntax for Rmarkdown Closes #415 While Markdown doesn't officially have a comment syntax, HTML comments are widely parsed as such. This is what most Markdown treat as Markdown comments. As a Markdown derivative it seams logical to do the same thing in Rmarkdown. The previously added '#' syntax seems to be for inside code blocks, and that would be language dependent anyway. I've left the hash option as the alternate. --- plugin/NERD_commenter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index a6583e7..3069cbe 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -370,7 +370,7 @@ let s:delimiterMap = { \ 'resolv': { 'left': '#' }, \ 'rgb': { 'left': '!' }, \ 'rib': { 'left': '#' }, - \ 'rmd': { 'left': '#' }, + \ 'rmd': { 'left': '', 'leftalt': '#' }, \ 'robot': { 'left': '#' }, \ 'robots': { 'left': '#' }, \ 'rspec': { 'left': '#' },