On Feb 17, 2011, at 12:26 PM, Björn Winckler wrote:

> On Feb 17, 2011, at 1:54 PM, Wes Baker wrote:
> 
>> I'm now only setting the $PATH in .profile and .zprofile and I've also
>> set MMLoginShellCommand for MacVim and I'm still having the same exact
>> problem.
>> 
>> I changed my shell in the Accounts Preference Pane, which I'm assuming
>> used chsh, but I'm not too sure.
>> 
>> Any other ideas?
> 
> I'm stumped.  Can you try changing your shell back to bash and see if you 
> still have the same problems?

Coincidentally, today I had some problems involving wrong paths on vim (seems 
like I hadn't fixed anything after all), so I did some tests with vim, gvim and 
gvim launched from the terminal, and the paths appear to be created in the 
following way:

1.- vim: 
    :echo $PATH   =>  ($PATH from .zshrc)
    :!echo $PATH  =>  ($PATH from /etc/paths)+($PATHs from 
/etc/paths.d/*)+($PATH from .zshrc)

2.- gvim:
    :echo $PATH   =>  ($PATH from .zprofile)
    :!echo $PATH  =>  ($PATH from /etc/paths)+($PATHs from 
/etc/paths.d/*)+($PATH from .zprofile)

3.- gvim from terminal:
    :echo $PATH   =>  ($PATH from .zshrc)
    :!echo $PATH  =>  ($PATH from /etc/paths)+($PATHs from 
/etc/paths.d/*)+($PATH from .zshrc)

Why the difference between the $PATHs? The second form is what path_helper 
returns.

The only way to make $HOME/bin to take precedence would be to add the full path 
to /etc/paths, which doesn't look right.

Is there any way to change this behaviour?

Thanks!
Israel

-- 
You received this message from the "vim_mac" 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