About 6 months ago, I switched from TextMate to MacVim for all of my developments, which mainly consist of coding in Ruby, Ruby on Rails, and JavaScript.
Using TextMate, when I needed to run a specification or test, I could just use the + R command in a test or specified file, and another window will open, and the results will be displayed using a βniceβ format. If the specification or test was long, I could continue to work with the code base, since the test / specification was carried out in a separate process / window. After running the test, I could directly view the results in the corresponding line in the spec file.
The great rails.vim plugin from Tim Pope is very close to emulating this behavior in a MacVim environment. Run: Rake when the current buffer is a test or spec runs a file, then splits the buffer to display the results. You can navigate through the results and go to the appropriate place in the file.
The problem with the rails.vim method is that it blocks the MacVim window during the test. This can be a problem with large applications, which can have many settings / breaks built into the tests. In addition, the visual red / green html results displayed by TextMate (via --format pretty, I guess) are a little easier to scan than a split window.
This guy came about 18 months ago: http://cassiomarques.wordpress.com/2009/01/09/running-rspec-files-from-vim-showing-the-results-in-firefox/ script he worked with a little hack but the tests still worked in MacVim and blocked the current window.
Any ideas on how to fully reproduce the TextMate behavior described above in MacVim?
Thanks!
Henry source share