From 4a431de51a40ea476e7ab83795006024004dd898 Mon Sep 17 00:00:00 2001 From: Sean Dunn Date: Fri, 29 Aug 2014 17:01:23 -0400 Subject: [PATCH] Allow for override of gui external runner --- plugin/rspec.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/rspec.vim b/plugin/rspec.vim index f43ea22..41197bb 100644 --- a/plugin/rspec.vim +++ b/plugin/rspec.vim @@ -4,8 +4,12 @@ if !exists("g:rspec_runner") let g:rspec_runner = "os_x_terminal" endif +if !exists("g:rspec_use_external_runner") + let g:rspec_use_external_runner = 1 +endif + if exists("g:rspec_command") - if has("gui_running") && has("gui_macvim") + if has("gui_running") && has("gui_macvim") && g:rspec_use_external_runner let s:rspec_command = "silent !" . s:plugin_path . "/bin/" . g:rspec_runner . " '" . g:rspec_command . "'" else let s:rspec_command = g:rspec_command