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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:07:08+00:00 2026-06-07T19:07:08+00:00

I installed rvm and a couple of rubies since i’m working with projects based

  • 0

I installed rvm and a couple of rubies since i’m working with projects based on different ones. Then created .rvmrc files in project directories and they work perfectly when i ‘cd’ to projects’ folders in my terminal:

~$ cd workspace/prox/
~/workspace/prox$ rvm current
ruby-1.9.3-p194@prox
~/workspace/prox$ cd ../cto/
~/workspace/cto$ rvm current
ruby-1.8.7-p358@openservice
~/workspace/cto$ 

And now i’m trying to use vim + NERDTree as my new ide to improve performance but i encountered a problem with .rvmrc:
When i cd in NERDTree to a project’s folder and get confirmation that CWD has changed i end up with default ruby@gemset. Hance .rvmrc hasn’t got processed.
Does anyone know if it is possible to make .rvmrc files work with vim NERDTree?

  • 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-07T19:07:09+00:00Added an answer on June 7, 2026 at 7:07 pm

    I’m not a rubyist and, therefore have no practical experience with RVM.

    But I seem to remember that it works by setting a bunch of environment variables which are supposed to be picked up by Vim at startup. Am I right?

    IMO the problem, here, is that changing a directory in Vim and changing a directory in your shell is not related at all. AFAIK, Vim doesn’t care about your .rvmrc and won’t notify your shell of any :cd.

    See this sequence of commands:

    $ cd
    $ pwd
    /home/username
    $ vim
    :pwd
    /home/username
    :cd Dropbox
    :pwd
    /home/username/Dropox
    :q
    $ pwd
    /home/username
    

    While you have changed to another directory while working in Vim you are back to square one when you quit. Because your shell didn’t notice all your travels and Vim didn’t pickup any new environment variables you are somehow at the same place with the same environment.

    But I might be completely off.

    This plugin by Tim Pope should help.

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

Sidebar

Related Questions

rebuilding a mac from scratch. Installed xcode and rvm then trying to install rubies
I installed RVM and installed 3 different rubies: 1.8.7, ree, and 1.9.2. I have
Based on my previous thread : RVM installed by Ruby not working? where i
I have just installed RVM in my machine and facing problem with rvmrc file,
I recently installed RVM. After loading my .rvmrc I tried bundle install and got
I installed RVM and then the most recent version of Ruby with it. Now
I installed Ruby 1.9.2 using homebrew, then installed RVM. I want to point RVM
I'm using a gemset per project approach. Suppose I just installed RVM, created a
I installed rvm and then ruby 1.9.2 but every time I close my terminal
I installed RVM, then used it to install ruby-1.9.2 and then used rubygems to

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.