Ⅰ. 插件描述
Asciidoc syntax and configuration for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mjakl/vim-asciidoc-treacherous'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mjakl/vim-asciidoc-treacherous'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mjakl/vim-asciidoc-treacherous'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mjakl/vim-asciidoc
Ⅳ. 文档说明
# Asciidoc
Asciidoc is a document markup language that is more powerful than Markdown, but still
human readable.
It covers a big range of document types you can write. From notes and simple README files
to full books.
For more information on Asciidoc, have a look at its homepage
(Asciidoc) and especially at the Asciidoctor project
(Asciidoctor).
mjakl/vim-asciidoc
This Vim plugin adds Asciidoc and Asciidoctor syntax highlighting, and folding
capabilities.
Foldlevels are computed by the number of = at the start of the line.
It also includes snippets that can be used with
UltiSnips.
The commentstring and comments variables are set to Asciidoc compatible
values.
Installation
Vundle
Plugin 'mjakl/vim-asciidoc'
Configuration
To disable the folding of Asciidoc headers, add this to your .vimrc:
let g:vim_asciidoc_folding_disabled=0
The default foldlevel after loading an Asciidoc file is 0,
you can configure that (1 is a good choice):
let g:vim_asciidoc_initial_foldlevel=1
Snippets
Asciidoc does not contain much boilerplate, but some things are repetetive,
the plugin includes UltiSnips snippets to make these few cases as pleasant as possible.
docInsert document headersourceInsert a source code blockquoteInsert a new quote block
Credits
The plugin is based on the work of many people, especially the creators of
these projects: