Ⅰ. 插件描述
A micro vim plugin for inserting `only` statements inside of `mocha` tests.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'muffs/wap-it'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'muffs/wap-it'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'muffs/wap-it'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/muffs/wap-it
Ⅳ. 文档说明
# Wap It
<p align="center">
<img src="http://i.imgur.com/yaezc8p.gif" /></p>
wap-it is a micro vim plugin that helps insert mocha .onlys in your tests.
Installation
Via Pathogen
git clone https://github.com/muffs/wap-it.git ~/.vim/bundle
Via Vundle
Add Bundle 'muffs/wap-it' to your bundle file.
Usage
wap-it binds two shortcuts for vim: ,wi (wap it) and ,wd (wap describe) lol.

,wi will find the closest it block in relation to the currently focused row. From there, it will then toggle the existence of an only statement.,wd does the exact same thing for describe blocks.