Ⅰ. 插件描述
(Soon to be) the official repository for the AsciiDoc syntax support in VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'asciidoc/vim-asciidoc-sparks-fly'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'asciidoc/vim-asciidoc-sparks-fly'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'asciidoc/vim-asciidoc-sparks-fly'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/asciidoc/vim-asciidoc
Ⅳ. 文档说明
= AsciiDoc syntax support for Vim
This is the development version of Vim's included syntax highlighting and filetype plugins for AsciiDoc.
Generally you don't need to install these if you are running a recent version of Vim.
== Overview
Syntax highlighting is incredibly useful.
In addition to making reading AsciiDoc documents much easier, syntax highlighting also helps you catch AsciiDoc syntax errors as you write your documents.
This repository contains the Vim files necessary to syntax highlight AsciiDoc in Vim.
A stable version of these files is included in the Vim distribution (see https://github.com/vim/vim/blob/master/runtime/syntax/asciidoc.vim[]).
== Installation (development files)
Install the highlighter by copying asciidoc.vim to your $HOME/.vim/syntax directory.
NOTE: Create this directory if it doesn't already exist.
You can enable syntax highlighing in one of the following ways:
. Put a Vim autocmd in your Vim configuration file
. Execute the Vim command :set syntax=asciidoc
. Add the following line to the end of you AsciiDoc source files:
// vim: set syntax=asciidoc:
== License
Copyright (C) The AsciiDoc Project.
Distributed under the same terms as Vim itself.
See :help license inside Vim.