title: How to use correct ruby in vim ? How to modify $PATH in VIM?
body: <p>I use plain Vim with ruby support on Lion (installed by <a href="https://gist.github.com/1110471" rel="noreferrer">gist</a>). I am using ruby with rbenv so my path looks like /users/me/.rbenv/shims:..... </p>
  
  <p>From within vim the path is </p>
  
  <pre><code>:!echo $PATH
  &gt; usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/fb/.rbenv/shims:....
  </code></pre>
  
  <p>Even I can create and modify an environment variable:</p>
  
  <pre><code>:let $PATH = "/bar:/foo"
  :!echo $PATH
  &gt; /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/foo:/bar
  </code></pre>
  
  <p>paths remains starting with /usr/bin.</p>
  
  <p>So how can I access my ruby 1.9.3 in ~/.rbenv/shims instead the system ruby in /usr/bin ?</p>