MacVim and rails.vim command terminated
The other day I was working in a new rails app and for some reason the rails.vim plugin would not run any of the commands. The error went by so quick that I couldn’t see what it was. I dropped to Terminal and ran the generator for the controller and it worked just fine. I ran it again inside MacVim and got the “Command Terminated” result again and noticed that it was not respecting my rvm gemset.
It was not picking up my rvm instances at all. Because I was using zsh, when I launched MacVim from the command line in Terminal, it was not respecting my sourcing rvm in the .zshrc file. After some looking around on Google, I found out that if I sourced it in .zshenv file that would work. So I took
1 | [[ -s /.rvm/scripts/rvm ]] && . /.rvm/scripts/rvm # This loads RVM into a shell session. |
and dropped it into .zshenv and it worked perfectly.
This entry was posted in Code and tagged bash, development, error, gemset, macvim, rails, rvm, vim, zsh. Bookmark the permalink.Comments







