Vim syntax file for Hspec
Vim script
Latest commit 46660be Jan 31, 2015 1 @ches ches Add MIT license
Closes #2
Permalink
Failed to load latest commit information.
UltiSnips
ftdetect
syntax Do not change colors by default, add screenshot May 20, 2013
LICENSE.txt Add MIT license Jan 31, 2015
README.md Add MIT license Jan 31, 2015
screenshot.png Update screenshot May 20, 2013

README.md

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 files. 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.