From 181d165995d0bf1c97bde661d0c85f5a1a92a71a Mon Sep 17 00:00:00 2001 From: duskhacker Date: Thu, 9 Jun 2011 20:05:09 -0500 Subject: [PATCH] Set cmdheight so the Press Enter when Done dialog is not shown, close the quickfix window prior to runnig to reset the contents and folding. --- plugin/sweet-vim-rspec.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/sweet-vim-rspec.vim b/plugin/sweet-vim-rspec.vim index 42afdd4..8139b1d 100644 --- a/plugin/sweet-vim-rspec.vim +++ b/plugin/sweet-vim-rspec.vim @@ -1,5 +1,7 @@ function! SweetRunSpec(arg) + let l:oldCmdHeight = &cmdheight echomsg "Running Specs..." + cclose sleep 10m " Sleep long enough so MacVim redraws the screen so you can see the above message if !exists('g:SweetVimRspecUseBundler') let g:SweetVimRspecUseBundler = 1 @@ -30,7 +32,10 @@ function! SweetRunSpec(arg) cw set foldmethod=marker set foldmarker=+-+,-+- + let &cmdheight = 2 + echo "Done" + let &cmdheight = l:oldCmdHeight endfunction command! SweetSpec call SweetRunSpec("all") command! SweetSpecRunAtLine call SweetRunSpec("atLine")