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 8223943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:53:18+00:00 2026-06-07T14:53:18+00:00

I have installed yadr dotfiles , a set of vim, ruby, etc plugins. I

  • 0

I have installed yadr dotfiles, a set of vim, ruby, etc plugins.

I have the following line of Ruby code in a file foo.rb:

foo: bar

Note I used the ruby 1.9.3 syntax for symbol assignment/definition.

When I start macvim from command line using mvim foo.rb and save that file, everything works fine.

However, when I open macvim using open -a macvim and navigate to and open foo.rb, when I try to save the file I get a ruby-vim syntax error on foo: bar. When I change it to :foo => bar I don’t get syntax errors.

  • Using open -a macvim to open macvim, and then entering :!ruby -v prints ruby 1.8.7
  • Using mvim . to open macvim, and then entering :!ruby -v prints ruby 1.9.3

Depending on how I open macvim, I get a different version of Ruby. How do I ensure that macvim always uses ruby 1.9.3 to evaluate my ruby code?

Thanks

  • 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-06-07T14:53:19+00:00Added an answer on June 7, 2026 at 2:53 pm

    It took me awhile to find a fix, but the issue is caused by MacVim not loading zsh the same way Terminal loads zsh.

    The fix is easy enough and can be placed into your zshrc. See a commit from my dotfiles:

    https://github.com/simeonwillbanks/dotfiles/commit/e0e19cfeff13f8bc99d8164217ddd84c6d7f9529

    The commit references a full explanation which can be found here:

    http://vim.1045645.n5.nabble.com/MacVim-and-PATH-tt3388705.html#a3392363

    enter image description here

    Hope this helps!

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

Sidebar

Related Questions

I have installed AWS S3 toolkit on sdfc. I have the following code where
I have installed the following components of SQL Server 2012: management tools - complete
i have installed wordpress and i i have installed couple of plugins and i
I have installed C++SDK that have Qt but when I try compiling a code
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have installed jasper plugins for my grails application. Then in the list.groovy page
I have installed Ruby 1.9.2 along with installing the rails gem. I have now
I have installed gitorious ruby application, configured apache passenger and vhost. Everything works fine
I have installed hadoop 1.0.1 in my ubuntu laptop by a deb install file.
I have installed a package from .rpm file and it is stored in /opt

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.