hspec.vim


Ⅰ. 插件描述

Vim syntax file for Hspec

Ⅱ. 基本信息

创建日期:  2013-05-18
使用用户:  10
Github星:  7
插件作者:  hspec

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Hspec.vim

Vim plugin providing support for the [Hspec] BDD-style testing framework for
Haskell.

Installation

If you are using pathogen.vim, then
you can install hspec.vim with:

cd ~/.vim/bundle
git clone https://github.com/hspec/hspec.vim

Syntax

By default spec files are highlighted the same as ordinary Haskell source

  1. You can customize colors by adding e.g. the following to your .vimrc:
highlight link hspecDescribe Type
highlight link hspecIt Identifier
highlight link hspecDescription Comment

screenshot of vim with hspec.vim

Snippets

The plugin includes [UltiSnips] snippets for the Hspec DSL. If you have
UltiSnips installed, no configuration is necessary, simply edit a file matching
*Spec.hs.

Press Ctrl-Tab in insert mode to list all available snippets in context, where
descriptions will indicate the Hspec snippets. Or just try a few of the most
common triggers: spec, des, con, it, etc.

License

Distributed under the MIT license.

添加新评论