Question

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
Was it helpful?

Solution

See my answer here. You need to add

set shell=/bin/bash\ -i

to your ~/.vimrc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top