* Paul <
googl...@rainslide.net> [120623 16:25]:
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
PATH="$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:\
/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/games:/usr/NX/bin$ADDONS"
else
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:\
/usr/local/sbin:/usr/local/bin:/usr/NX/bin$ADDONS"
fi
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!