vim-rmarkdown icon indicating copy to clipboard operation
vim-rmarkdown copied to clipboard

syntax highlight shows weird color

Open DadongZ opened this issue 5 years ago • 2 comments

I installed the plugin following the instruction but got wierd folding (to one line when open it) and the highlight looks weird rm

My .vimrc:

Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'rstudio/rmarkdown'
Plugin 'vim-pandoc/vim-rmarkdown'

DadongZ avatar Jun 16 '20 16:06 DadongZ

I'm seeing the same issue running Neovim (NVIM v0.6.0-dev+13-ga6cdfa27d)

rmd-weird

My init.lua - installing with packer

  -- Rmarkdown
use  {
    "vim-pandoc/vim-pandoc",
  }
use  {
    "vim-pandoc/vim-pandoc-syntax",
  }
use  {
    "vim-pandoc/vim-rmarkdown",
      run = 'cd app && yarn install',
      cmd = 'MarkdownPreview',
      ft = "rmarkdown"
 }

Note - Line # 20 highlights as expected because it is inlined R code (i.e., r nasdaq$Date[1] and r nasdaq$Date[length(nasdaq$Date)]), but just a $ on a normal line also has the different background like headings.

Issue persists with other color scheme.

jvaverka avatar Jul 18 '21 00:07 jvaverka

2 years later, but the only solution I found was uninstalling vim pandoc and vim pandoc syntax, this plugins is still working independently of those ones, just be ensured to have installed rmarkdown and pandoc in your system

awelormro avatar Nov 24 '22 18:11 awelormro