apiblueprint.vim


Ⅰ. 插件描述

This vim plugin brings syntax highlighting and linting for API Blueprint.

Ⅱ. 基本信息

创建日期:  2014-04-24
使用用户:  201
Github星:  110
插件作者:  Kyle Fuller

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'kylef/apiblueprint-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'kylef/apiblueprint-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'kylef/apiblueprint-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/kylef/apiblueprint.vim

Ⅳ. 文档说明

# apiblueprint.vim

This vim plugin brings syntax highlighting and linting for [API
Blueprint](http://apiblueprint.org).

API Blueprint Plugin Screenshot

Usage

The plugin adds an apiblueprint file type along with an apiblueprint
syntax.

Linting

Using syntastic, your API Blueprint
can be linted on each save. For this, you will need to install both
drafter and
syntastic.

Apiary

You can use the apiary client with
this plugin to load a blueprint from Apiary directly providing apiary client is
installed and configured.

$ vim apiary:pollsapi

Refract

Providing you have drafter

  1. You can use GenerateRefract function to generate a preview of the Refract
  2. for your API Blueprint in a split.

You can manually map this function to a keyboard shortcut. For example to
ctrl+b:

autocmd FileType apiblueprint nnoremap <C-b> :call GenerateRefract()<cr>

TagBar

If you have TagBar installed you can use it
to list and jump to groups and resources.

Snippets

The are snippets in the snipMate format, supported by many Vim snippet plug-ins.

Installation

With vim-plug (recommended)

Add:

Plug 'kylef/apiblueprint.vim'

To your .vimrc and run PlugInstall inside vim.

With Vundle

Add:

Plugin 'kylef/apiblueprint.vim'

To your .vimrc and run PluginInstall from within vim or `vim
+PluginInstall +qall` from the command line

With Pathogen

$ git clone https://github.com/kylef/apiblueprint.vim.git ~/.vim/bundle/apiblueprint.vim

添加新评论