* Paul <google01...
@rainslide.net> [120623 16:25]:
> On Saturday, 23 June, 2012 at 21:24:55 BST, John Magolske wrote:
> >I'm finding that $PATH is different in Vim than in the parent shell.
> It looks like you have your PATH set in two different places. Have
> a look at :help :! and :help shellcmdflag - set it to -ic to see if
> it helps.
Yes, after doing :set shellcmdflag=-ic to specify that vim use an
interactive shell I see PATH as what I have set in my ~/.zshrc.
But placing "set shellcmdflag=-ic" in my ~/.vimrc creates a behavior
where when Vim is launched it is immediately suspended and I have to
issue `fg` to bring it to the foreground.
Digging around for where else PATH could be set, I found this in
/etc/zsh/zshenv (came from installing Debian via the grml distro) :
if (( EUID != 0 )); then
Ah...the same path I see when doing :!echo $PATH in Vim.
Commenting out those lines solved the problem not only for Vim, but
for other applications as well (vifm also saw that non-desired PATH).
Thanks for the helpful clues!