vim-pandoc / vim-rmarkdown

Rmarkdown support for vim
100 stars 26 forks source link

syntax highlight shows weird color #31

Open DadongZ opened 4 years ago

DadongZ commented 4 years ago

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'
jvaverka commented 3 years ago

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.

awelormro commented 2 years ago

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