Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6241311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:44:44+00:00 2026-05-24T11:44:44+00:00

The only thing I haven’t been able to do with Vim that I was

  • 0

The only thing I haven’t been able to do with Vim that I was able to do with TextMate is run a focused test or context when using Shoulda.

:Rake

runs the current file (which still works fine)

The help docs on :Rake say this:

Additionally, when :Rake is given a line number (e.g., :.Rake), the following
additional tasks can be invoked:

File            Task ~
unit test       test:units TEST=... TESTOPTS=-n...
...

However when I run something like :35Rake, with the line number being the line with either:

should "validate presence of something" do

or some statement within the test, it still runs all of the tests in the file. Has anyone else figured out a way to get it to work?

Thanks so much for any help/advise guys, I’ve looked everywhere I could for the past few days and haven’t come up with anything :-/

EDIT: For what it’s worth, I’m using MacVim 7.3, rails.vim 4.3, OSX 10.6, ruby 1.8.7, and rails 2.3.5

EDIT #2: I’ve emailed Thoughtbot (developers of Shoulda, some of whom use Vim) and checked out the Shoulda Google group (and all the people linking to their vim scripts had removed the scripts), and I’ve come to the conclusion that I should just write my own Vim script. I’ve checked out the code for the most popular Shoulda bundle for TextMate and took note (noticed some bugs, too). If I end up writing a script for it, I’ll post the link here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:44:44+00:00Added an answer on May 24, 2026 at 11:44 am

    Have you tried the Rubytest plugin

    http://www.vim.org/scripts/script.php?script_id=2612

    This works with shoulda and can run a single test

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The only thing I've found has been; .hang { text-indent: -3em; margin-left: 3em; }
I'm considering dumping boost as a dependency... atm the only thing that I really
I coded up 4 .java files. The thing is that I can only execute
Relationship tables mostly contain two columns: IDTABLE1 , and IDTABLE2 . Only thing that
The only thing I don't have an automated tool for when working with SQL
Why is it impossible to have a reference to void? The only thing I
That's the question. Give only one reason you think why have OODB failed or
Essentially the only thing I can deploy to my deployment machine is a JAR
When I see Lua, the only thing I ever read is great for embedding,
I'm trying to understand the event system of Kohana. The only thing i don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.