Skip to content

Commit 2380a5f

Browse files
author
Greg Lazarev
committed
Update documentation to reflect runner changes
1 parent 0a6c562 commit 2380a5f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,32 +50,32 @@ Or, [Dispatch](https://github.com/tpope/vim-dispatch) and
5050
let g:rspec_command = "compiler rspec | set makeprg=zeus | Make rspec {spec}"
5151
```
5252

53-
### Custom runners
53+
### MacVim command runners
5454

55-
Overwrite the `g:rspec_runner` variable to set a custom launch script. At the
56-
moment there are two MacVim-specific runners, i.e. `os_x_terminal` and
57-
`os_x_iterm`. The default is `os_x_terminal`, but you can set this to anything
58-
you want, provided you include the appropriate script inside the plugin's
59-
`bin/` directory.
60-
61-
#### iTerm instead of Terminal
62-
63-
If you use iTerm, you can set `g:rspec_runner` to use the included iterm
64-
launching script. This will run the specs in the last session of the current
65-
terminal.
55+
If you are running your specs from MacVim,
56+
you must set a `g:rspec_runner` or `g:rspec_command`, or both.
57+
To `g:rspec_runner` variable specifies which launch script will be used:
6658

6759
```vim
6860
let g:rspec_runner = "os_x_iterm"
6961
```
7062

71-
If you use the iTerm2 nightlies, the `os_x_iterm` runner will not work
72-
(due to AppleScript incompatibilities between the old and new versions of iTerm2).
63+
At the moment the following MacVim-specific runners are supported:
7364

74-
Instead use the `os_x_iterm2` runner, configure it like so:
65+
* `os_x_terminal` for OSX Terminal.app
66+
* `os_x_iterm` for iTerm2 stable release
67+
* If you use the iTerm2 nightlies, the `os_x_iterm` runner will not work
68+
due to AppleScript incompatibilities
69+
between the old and new versions of iTerm2
70+
* `os_x_iterm2` for iTerm2 nightly builds
7571

76-
```vim
77-
let g:rspec_runner = "os_x_iterm2"
78-
```
72+
If `g:rspec_runner` isn't set,
73+
the `g:rspec_command` will be executed from MacVim without a runner.
74+
This enables commands like `Dispatch rspec {spec}` to work in GUI mode.
75+
76+
You can set `g:rspec_runner` to anything you want,
77+
provided you include the appropriate script
78+
inside the plugin's `bin/` directory.
7979

8080
## Running tests
8181

0 commit comments

Comments
 (0)