From: Mike Mondragon Date: 2009-04-20T08:13:22+09:00 Subject: Re: [ANN] rubytest.vim 0.9.0 On Sun, Apr 19, 2009 at 2:44 AM, Jan wrote: > Hi list, > > I'm pleased to announce the first release of rubytest, which is a > vim plugin aims to help you run ruby test (including vanilla test, > rspec, shoulda etc.) conveniently. > > http://www.vim.org/scripts/script.php?script_id=2612 > > Installation > ------------ > > Copy all files to your ~/.vim directory. > > Usage > ----- > > After installation, hit t will run the test under your cursor > if you are editing a ruby test file. > > example: > > $ cd > $ vim test/unit/user_test.rb > (move cursor into a test case, press t) > > ( is mapping to '\' by default in vim) > > You can customize the command which will be used to run the test case by > settting these options in your vimrc file: > >  let g:rubytest_cmd_test = "ruby %p" >  let g:rubytest_cmd_testcase = "ruby %p -n '/%c/'" >  let g:rubytest_cmd_spec = "spec -f specdoc %p" >  let g:rubytest_cmd_example = "spec -f specdoc %p -e '%c'" > > Default Key Bindings > -------------------- > > t: run test case under cursor > T: run all tests in file > > I've only tested with tests in rails/merb project. Looking forward to > receiving your feedback. > > Thanks, > Jan > > -- > jan=callcc{|jan|jan};jan.call(jan) > This plugin works great for me. In the version copied into my plugins, I changed the individual test to \ so I could double tap \ to run the test under the cursor. And ] to run all tests since ] is next to \ on my keyboard and quicker to type than T Thanks Mike