For some reason it seems that vim (installed through macports:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 25 2013 01:56:26) prefixes my $PATH variable with the /etc/paths files.
Although I don't mind it adding those, it is very convenient that it is prefixing my path with that in all cases in a way that I cannot override it (or at least, I haven't found a way to do so).
Example of the problem:
" First we overwrite $PATH with something to show the problem :let $PATH='just_some_non_existing_dir' " Now print the path in the shell to show the problem (note the !) :!echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:just_some_non_existing_dir
How can I prevent Vim from prefixing this $PATH for every external command I execute?
A little information about my environment:
OS X: 10.8.2 VIM: Vi IMproved 7.3 (2010 Aug 15, compiled Feb 25 2013 01:56:26) zsh: 4.3.11 (i386-apple-darwin12.0)
Note that I run zsh as a shell.