specky/doc/specky.txt
author mahlon
Sun, 22 Mar 2009 00:39:19 +0000
branchvim-stuff
changeset 2 6b33188f1694
child 3 db3e3abfc647
permissions -rw-r--r--
Moving Specky into a Vim subfolder.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     1
*specky.txt* Last change: $Id$
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     2
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     3
                VIM REFERENCE MANUAL    by Mahlon E. Smith
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     4
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     5
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     6
                                  specky!
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     7
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     8
A Plugin for testing Ruby code with RSpec -- and more                 *specky*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
     9
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    10
CONTENTS                                                      *SpeckyContents*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    11
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    12
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    13
    1) Intro........................................|SpeckyIntro|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    14
    2) Functionality................................|SpeckyFunctionality|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    15
    3) Enabling Specky..............................|SpeckyVimrcExample|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    16
    4) Configuration................................|SpeckyOptions|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    17
        4.1) Cycling quote styles...................|g:speckyQuoteSwitcherKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    18
        4.2) Display ruby documentation.............|g:speckyRunRdocKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    19
        4.3) Toggle editing between spec and code...|g:speckySpecSwitcherKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    20
        4.4) Run specs for the current buffer.......|g:speckyRunSpecKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    21
        4.5) Modify the default spec command........|g:speckyRunSpecCmd|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    22
        4.6) Modify the default rdoc command........|g:speckyRunRdocCmd|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    23
        4.7) Split windows vertically...............|g:speckyVertSplit|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    24
    5) Author.......................................|SpeckyAuthor|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    25
    6) License......................................|SpeckyLicense|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    26
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    27
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    28
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    29
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    30
1. INTRO                                                         *SpeckyIntro*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    31
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    32
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    33
Specky is primarily a small collection of functions to help make behavioral
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    34
testing streamlined and easy when working with ruby and rspec.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    35
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    36
Specky secondarily includes a couple of conveniences to make your everyday
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    37
programming tasks smooooth and pleasurable.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    38
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    39
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    40
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    41
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    42
2. FUNCTIONALITY                                         *SpeckyFunctionality*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    43
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    44
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    45
Okay then, what does it do?
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    46
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    47
By default?  Nothing, unless you are comfortable using the menus.  I decided
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    48
the easiest way to cherry pick the functionality that you'd like was to enable
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    49
them via key bindings.  By doing this, Specky won't make assumptions about
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    50
your current environment, and won't stomp on anything you don't want it to.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    51
>
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    52
    Specky won't do -anything- with your environment until you enable
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    53
    the key bindings!!
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    54
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    55
After you've configured your bindings, here are some of the things you can
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    56
now do with a single key stroke:
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    57
>
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    58
    - Switch back and forth from code to testing spec 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    59
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    60
    - Run the spec, with results going to a new, syntax highlighted buffer 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    61
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    62
    - Jump quickly to spec failures and failure detail 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    63
        - 'e' and 'r' to move back and forth on each failed assertion, 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    64
        - 'E' to jump details for it. 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    65
        - '<C-e>' to "forget" the currently selected failed assertion
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    66
        - 'q' to close the spec output buffer. 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    67
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    68
    - View rdoc of the word under the cursor
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    69
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    70
    - Dynamically switch string types for the word under the cursor
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    71
      (double quoted, quoted, symbol)
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    72
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    73
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    74
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    75
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    76
3. ENABLING-SPECKY                                        *SpeckyVimrcExample*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    77
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    78
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    79
Here's what my config looks like. >
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    80
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    81
    let g:speckyQuoteSwitcherKey = "<C-S>'"
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    82
    let g:speckyRunRdocKey = "<C-S>r"
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    83
    let g:speckySpecSwitcherKey = "<C-S>x"
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    84
    let g:speckyRunSpecKey = "<C-S>s"
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    85
    let g:speckyRunSpecCmd = "spec -fs -r loadpath.rb"
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    86
    let g:speckyRunRdocCmd = "fri -L -f plain"
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    87
    let g:speckyVertSplit = 1
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    88
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    89
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    90
With these bindings, all specky commands start with <ctrl-s> ("s" for
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    91
specky!), followed by a mnemonic function to run:
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    92
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    93
    ' ----> Quote cycling ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    94
    r ----> run Rdoc ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    95
    x ----> code and spec eXchange ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    96
    s ----> run Spec ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    97
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    98
Of course, <ctrl-s> is a "suspend" signal for most terminals, so these
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
    99
bindings are meant for a |gui| environment, such as gvim.  Your mileage (and
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   100
tastes) will doubtlessly vary.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   101
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   102
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   103
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   104
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   105
4. CONFIGURATION-OPTIONS                                       *SpeckyOptions*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   106
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   107
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   108
Here are all of the available configuration options.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   109
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   110
Please note that you must (at an optional minimum) set the respective binding
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   111
variables:
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   112
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   113
    |g:speckyQuoteSwitcherKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   114
    |g:speckyRunRdocKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   115
    |g:speckySpecSwitcherKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   116
    |g:speckyRunSpecKey|
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   117
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   118
...in order to enable specky functionality.  See |SpeckyVimrcExample| for
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   119
details. Any other options are entirely optional.  Put these into your
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   120
|vimrc|, or wherever else you enjoy storing this kind of stuff.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   121
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   122
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   123
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   124
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   125
4.1                                                 *g:speckyQuoteSwitcherKey*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   126
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   127
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   128
Setting this binding enables quote "style switching".
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   129
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   130
If you aren't in ruby mode, this just changes the word under the cursor
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   131
back and forth from double quoting to single quoting.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   132
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   133
    string -> "string" -> 'string' -> "string" ... ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   134
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   135
In ruby mode, symbols are also put into the rotation.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   136
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   137
    "string" -> 'string' -> :string -> "string" ... ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   138
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   139
Note that quote cycling only works with a |word|.  Sentences are not currently
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   140
supported.  (But hopefully will be soon.)
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   141
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   142
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   143
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   144
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   145
4.2                                                       *g:speckyRunRdocKey*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   146
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   147
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   148
Setting this enables the display of rdoc documentation for the current
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   149
word under the cursor.  For lookups with multiple matches, you can continue
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   150
using this binding to "drill down" to the desired documentation.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   151
         
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   152
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   153
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   154
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   155
4.3                                                  *g:speckySpecSwitcherKey*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   156
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   157
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   158
Setting this enables spec to code switching, and visa versa.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   159
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   160
Switching uses path searching instead of reliance on directory structure in
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   161
your project.  The idea here is that you'd |:chdir| into your project
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   162
directory.  Spec files just need to end in '_spec.rb', which is a common
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   163
convention.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   164
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   165
    aRubyClass.rb ---> aRubyClass_spec.rb~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   166
 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   167
 Because it leaves respective buffers open, you can essentially think of this
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   168
 as a quick toggle for code and tests.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   169
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   170
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   171
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   172
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   173
4.4                                                       *g:speckyRunSpecKey*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   174
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   175
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   176
Setting this variable allows you to run "spec" on the current buffer.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   177
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   178
All output is sent to a syntax highlighted scratch buffer. This new window is
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   179
re-used for each spec run.  You can quickly "jump" to assertion failures and
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   180
their associated details with the following keys:
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   181
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   182
        e and r ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   183
            Move forward and backward through the failed assertions.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   184
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   185
        E~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   186
            While on a failure line, jump to the details of the failure.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   187
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   188
        <C-e> ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   189
            "Forget" the last found failed assertion, and start over at the
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   190
            beginning of the list. (ie, the next 'e' keystroke will select
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   191
            error #1.)
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   192
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   193
        q ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   194
            Closes the spec output buffer. 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   195
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   196
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   197
Normally, you'd only want to perform this keystroke while in a spec file
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   198
buffer.  If specky thinks you are in code, rather than a buffer (as indicated
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   199
by the lack of a "_spec.rb" file naming convention) then it will attempt to
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   200
switch to the spec before running the command.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   201
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   202
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   203
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   204
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   205
4.5                                                       *g:speckyRunSpecCmd*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   206
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   207
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   208
This is the program, with flags, that the current file is sent to when
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   209
executing the |g:speckyRunSpecKey| keybinding.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   210
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   211
A common addition is to include an "-r" flag for sucking in local libraries
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   212
necessary for testing your project.  The spec "plain" output format is
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   213
supported too, though less useful.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   214
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   215
    Default: ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   216
        spec -fs
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   217
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   218
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   219
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   220
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   221
4.6                                                       *g:speckyRunRdocCmd*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   222
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   223
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   224
If you prefer an rdoc display program other than "ri", you can set it
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   225
with this variable.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   226
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   227
    Default: ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   228
        ri
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   229
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   230
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   231
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   232
------------------------------------------------------------------------------
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   233
4.7                                                        *g:speckyVertSplit*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   234
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   235
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   236
For both spec and rdoc commands, split the new window vertically instead of
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   237
horizontally.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   238
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   239
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   240
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   241
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   242
5. AUTHOR                                                       *SpeckyAuthor*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   243
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   244
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   245
Specky was written by Mahlon E. Smith.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   246
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   247
    mahlon@martini.nu ~
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   248
    http://www.martini.nu/ 
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   249
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   250
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   251
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   252
==============================================================================
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   253
6. LICENSE                                                     *SpeckyLicense*
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   254
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   255
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   256
Specky is distributed under the BSD license.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   257
    http://www.opensource.org/licenses/bsd-license.php
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   258
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   259
>
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   260
    Copyright (c) 2008, Mahlon E. Smith <mahlon@martini.nu>
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   261
    All rights reserved.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   262
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   263
    Redistribution and use in source and binary forms, with or without
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   264
    modification, are permitted provided that the following conditions are
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   265
    met:
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   266
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   267
        * Redistributions of source code must retain the above copyright
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   268
          notice, this list of conditions and the following disclaimer.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   269
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   270
        * Redistributions in binary form must reproduce the above copyright
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   271
          notice, this list of conditions and the following disclaimer in the
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   272
          documentation and/or other materials provided with the distribution.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   273
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   274
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   275
    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   276
    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   277
    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   278
    OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   279
    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   280
    TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   281
    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   282
    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   283
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   284
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   285
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   286
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   287
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   288
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   289
vim: set noet nosta sw=4 ts=4 ft=help :
6b33188f1694 Moving Specky into a Vim subfolder.
mahlon
parents:
diff changeset
   290