Monday, February 13, 2012

Setting rvm gemset in vim

I was having a problem setting my rvm gemset manually in vim using vim-rvm.  I would do a "Rvm gemset use rails234", but then doing a "Rvm info" showed that the gemset was not set.

I finally figured out that if I set the ruby version and the gemset all at once, it would stick, as in "Rvm 1.8.7-oldgem@rails234".

If you have to set your rvm stuff manually in vim and you run into the same problem, hopefully this will help.