Specky!


Ⅰ. 插件描述

Functions to help make behavioral testing easy with ruby and rspec.

Ⅱ. 基本信息

创建日期:  2008-07-06
使用用户:  36
Github星:  11
插件作者:  Mahlon Smith

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Specky is a small collection of Vim functions to help make behavioral testing streamlined and easy when working with ruby and rspec.

Here are some of the things you can do with Specky, with a single key stroke:

    * Switch back and forth from code to testing spec
    * Run the spec, with results going to a new, syntax highlighted buffer
    * Jump quickly to spec failures and failure detail
    * View rdoc of the word under the cursor
    * Dynamically switch string types for the word under the cursor (double quoted, quoted, symbol)
    * Create comment banners quickly

Specky also includes a couple of conveniences to make your everyday programming tasks smooooth and pleasurable, such as:

     File detection for spec files (that are named in the traditional _spec.rb fashion.)
    * Syntax highlighting for rspec and rdoc
    * "Snippets" for rspec, using the Snipmate (vimscript #2540) plugin.

You can see a screencast of Specky here: http://projects.martini.nu/vim-stuff/wiki/SpeckyCast

This is my first official VIM plugin.  Advice/props/criticisms all equally appreciated, but please let me know if you're using it!  (mahlon@martini.nu)  

添加新评论