vim-snipmate


Ⅰ. 插件描述

Snippets for snipmate

Ⅱ. 基本信息

创建日期:  2012-05-22
使用用户:  1
Github星:  4
插件作者:  Maks Nemisj

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-snipmate

Snippets for vim using snipmate + pathogen compatible bundle

This are the snippets for the following libraries:

Simple snippet loader is included in here in order to make snippets pathogen compatible,
which means you can install them as any pathogen bundle.

All snippets begin with a prefix of the library in order to keep them separate
from each other, e.g., expect(false).to.be.ok; is chai.ok

Chai.js snippets

chai.ok

expect(false).to.be.ok;

chai.notok

expect(true).to.not.be.ok;

chai.eql

expect(null).to.eql(''});

chai.equal

expect(null).to.equal('');

chai.iof

expect(null).to.be.instanceof(false);

chai.tohave

expect(null).to.have.property('property');

chai.tobe

expect(null).to.be.a('');

chai.bestr

expect(null).to.be.a('string');

chai.bearray

expect(null).to.be.a('array');

chai.beobj

expect(null).to.be.a('object');

chai.benull

expect('').to.be.a('null');

chai.beun

expect('').to.be.a('undefined');

Mocha.js snippets

mocha.describe

describe('Description', function() {
    // code in here
});

mocha.before

before(function() {
    // code in here
});

mocha.after

after(function() {
    // code in here
});

mocha.beforeEach

beforeEach(function() {
    // code in here
});

mocha.afterEach

afterEach(function() {
    // code in here
});

mocha.it

it('should ', function() {
    // code in here
});

mocha.itp

Pending it

it('should ');

添加新评论