Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jtratner/vim-flavored-markdown'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jtratner/vim-flavored-markdown'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jtratner/vim-flavored-markdown'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jtratner/vim-flavored-markdown
Ⅳ. 文档说明
Vim-Flavored-Markdown
Add-on to Tim Pope's markdown.vim to highlight using Github
Flavored Markdown.
a syntax plugin that extends the Tim Pope's markdown syntax file to recognize
github code blocks like:
Some codeIt also colors markdownCode blocks and in-lines as String, so they are more
easily differentiable in your code.
Finally, it no longer highlights multiple underscores, i.e.:
_this_gets_highlighted_
but_this_does_notInstall
Best way - use Pathogen
If you use Pathogen, you can just clone this into your bundles
cd ~/.vim/bundle
git clone git://github.com/jtratner/vim-flavored-markdown.gitOtherwise, copy the file to your syntax folder
curl https://raw.githubusercontent.com/jtratner/vim-flavored-markdown/master/syntax/ghmarkdown.vim -o ~/.vim/syntax/ghmarkdown.vimUse flavored-markdown by default
Add the following autocmd to your .vimrc:
augroup markdown
au!
au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown
augroup ENDSee it in action
After installing, open up this readme, and you'll see fenced awesomeness.
License
MIT
Contributors to Vim-Flavored-Markdown
Vim-Flavored-Markdown author: Jeff Tratner (jtratner)
markdown.vim author: Tim Pope (tpope)
Along with all of the various contributors to markdown.vim
Thanks to @dankosaur, @knewter, and @Niggler for contributing.
<!--
vim:sw=2 ft=ghmarkdown
-->