* Paul <google01239@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
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!
John
--
John Magolske
http://B79.net/contact
--
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
Saturday, June 23, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment