I use Vim primarily to write ruby code. Recently I switched to using
rbenv which involves changing the PATH variable to add some shims (for
which I've added a couple of lines to my .zshrc).

'echo $PATH' on the command-line gives me: './bin:/Users/
srushti/.rbenv/shims:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/
X11/bin:/opt/local/bin:/usr/local/git/bin:...'. When I launch Vim
running ':echo $PATH' gives me the same value as on the command-line,
but when I try to run ':!echo $PATH' (note the bang) I get '/usr/bin:/
bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:./bin:/Users/
srushti/.rbenv/shims:/opt/local/bin:/usr/local/git/bin:...'. As you
can see, when I shell out the "./bin" & the rbenv shims move to after
a few '/usr' paths.

Any idea what the cause might be?

Extra information if you need it:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov  8 2011 10:26:50)
MacOS X (unix) version

&

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 24 2011 20:00:09)
Compiled by [email protected]

Mac OSX 10.7.2


Let me know if you need any other information.

Thanks

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to