How can I set vim to see my ruby rvm install on ubuntu. rvm is installed and ruby returns from a terminal.
renshaw@renshaw-TravelMate-5740G:~$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
in vimrc I have set this.
set autowrite
set makeprg=ruby\ %
However when running make it cannot find ruby /bin/bash .
/bin/bash: ruby: command not found
Is there a way to make vim see this?
Edit: In my bashrc this s the line I have for rvm.
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi