janx/vim-rubytest — Issue #5: test results disappear immediately
Author: rabbashanks
Created: 2012-02-13 18:19:04+00:00
State: open

I'm sure this is my local problem, but when I run a single unit test (leader-t, which I have remapped to leader-\ ) the tests run in a new split window at the bottom of macvim, but as soon as they complete, they disappear - so you can't see the results.

This happens regardless of whether the test passes or fails.

This is not in the quickfix window, this is in the default mode.

I'm just trying to get to grips with vim, and I really can't figure this out. Any pointers?

I have the janus plugin bungle installed, and my .vimrc.before looks like this:

map \ RubyTestRun " change from t to \
map ] RubyFileRun " change from T to ]
map / RubyTestRunLast " change from l to /

and the .vimrc.after looks like this:

" launch peepopen via command T
if has("gui_macvim")
map PeepOpen
end

" execute the current file as ruby with command R
map :!ruby %

" don't run the rubytest actions in the quickfix window
let g:rubytest_in_quickfix = 0

color pastelsondark
set gfn=Monaco:h12

" disable the macvim toolbar
if has("gui_macvim")
set guioptions=egmrt
endif

" show / hide NERDTree with \d
nnoremap d :NERDTreeToggle

" remove trailing spaces with \s
nnoremap s :%s/\s\+$//e

" remove trailing spaces when saving any ruby file
autocmd BufWritePre *rb :%s/\s\+$//e