我刚刚在Vundle(最新的github版本)中安装了vim-rmarkdown、vim-pandoc和vim-pandoc-syntax插件。
当我在vim中打开一个RMarkdown文件(.Rmd),它会将文件类型识别为rmarkdown,并用lambda符号等标记R代码块的开始(替换```),就像我在vim-rmarkdown截图示例中看到的那样。但让我感到困惑的是,vim决定高亮一些字符串(完全遮盖了文本,就好像它被编辑一样)。通常我按空格键即可清除搜索术语的高亮显示;但这并不是那个问题。它还隐藏了R代码块的终止符```,只有在将光标移动到该行时才会变得可见。请问有哪位能帮忙:
1.提供vim-rmarkdown FAQs/docs的指引(:h rmarkdown只调用了你在github页面上获得的同样基本信息);
2.为什么它覆盖了(用纯色高亮显示)某些文本以及如何停止它;
3.如何显示R代码块的结尾(```),或以其他方式更好地区分"文本"和R代码块。
根据可用的vim-rmarkdown文档,我已经在我的.vimrc文件的开头添加了以下内容。
当我在vim中打开一个RMarkdown文件(.Rmd),它会将文件类型识别为rmarkdown,并用lambda符号等标记R代码块的开始(替换```),就像我在vim-rmarkdown截图示例中看到的那样。但让我感到困惑的是,vim决定高亮一些字符串(完全遮盖了文本,就好像它被编辑一样)。通常我按空格键即可清除搜索术语的高亮显示;但这并不是那个问题。它还隐藏了R代码块的终止符```,只有在将光标移动到该行时才会变得可见。请问有哪位能帮忙:
1.提供vim-rmarkdown FAQs/docs的指引(:h rmarkdown只调用了你在github页面上获得的同样基本信息);
2.为什么它覆盖了(用纯色高亮显示)某些文本以及如何停止它;
3.如何显示R代码块的结尾(```),或以其他方式更好地区分"文本"和R代码块。
根据可用的vim-rmarkdown文档,我已经在我的.vimrc文件的开头添加了以下内容。
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'vim-pandoc/vim-rmarkdown'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line