VOOZH about

URL: http://rvm.io/integration/vim

⇱ RVM: Ruby Version Manager - Using vim with rvm


👁 RVM Logo
Support
RVM is maintained by community of volunteers, report issues to RVM issues tracker.
If you can help or wish to become one of the maintainers - just start helping. You can find more RVM related projects at RVM Github organization.
Donation
Love RVM? Help us maintain RVM, a donation can help with it. Want to help in other way, want to be a sponsor?
contact: Michal Papis
Sponsors
👁 Fastly
Carbon Ads
Documentation > Integration > Vim

Integrating rvm with vim

If you wish to add rvm information to your vim status line, check out rvm.vim.

MacVim with rvm rubies.

If you wish to use MacVim with a rvm ruby, you'll have to build MacVim from source after applying the patch located here.

Thanks to Michael Shapiro for providing this patch.

MacVim, ZSH and rvm rubies.

If you are using ZSH you may find that MacVim is not loading your rvm configuration correctly. This may be because you are sourcing the rvm scripts in your .zshrc file. MacVim does not source the .zshrc file, but will source the .zshenv file. To ensure that MacVim correctly loads rvm for its shell, and running ruby commands, source the rvm scripts from withing .zshenv. Alternatively, you can add:

set shell=/bin/sh

to your .vimrc, and ensure vim always runs from a shell, and ensure you source rvm from within your .profile file.

Thanks to Henry Poydar for finding this blog post

RVM Documentation Index | RVM Blog
RVM Interpreters Rubies
Gemsets Set Actions Workflow Deployment
Integration
Packages Presentations Help & Support Quality Assurance Development Credits
∞ Copyright © 2009-2011 Wayne E. Seguin © 2011-2017 Michal Papis © 2016-2017 Piotr Kuczynski ∞ Built with Nanoc ∞ Cached by Fastly ∞ Tested by Travis CI