Ⅰ. 插件描述
pandoc markdown syntax, to be installed alongside vim-pandocⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vim-pandoc/vim-pandoc-syntax-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vim-pandoc/vim-pandoc-syntax-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vim-pandoc/vim-pandoc-syntax-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-pandoc/vim-pandoc-syntax
Ⅳ. 文档说明
# vim-pandoc-syntax
Standalone pandoc syntax module, to be used alongside
vim-pandoc.
Forked from the version provided by fmoralesc/vim-pantondoc
, in turn taken
from vim-pandoc/vim-pandoc
.
Requirements
- A vim version with
+conceal
- vim-pandoc, to set the
pandoc
filetype (otherwise you'll have to set it up yourself).
Installation
The repository follows the usual bundle structure, so it's easy to install it
using pathogen,
Vundle or NeoBundle.
For Vundle users, it should be enough to add
Plugin 'vim-pandoc/vim-pandoc-syntax'
to .vimrc
, and then run :PluginInstall
.
For those who need it, a tarball is available from
here.
Standalone
If you want to use vim-pandoc-syntax
without vim-pandoc, you'll need to tell
Vim to load it for certain files. Just add something like this to your vimrc:
augroup pandoc_syntax
au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
augroup END
Features
- Supports most (if not all) pandoc's markdown features, including tables,
delimited codeblocks, references, etc. - Can handle multiple embedded languages (LaTeX, YAML headers, many languages
in delimited codeblocks). Some commands are provided to help with this (see
:help pandoc-syntax-commands
)
- Pretty display using
conceal
(optional). - Configurable (see
:help pandoc-syntax-configuration
for an overview of the
options).