> Any idea what the cause might be?

What's vim's 'shell' option set to?  I suspect vim is using a
different shell to that you expect.

Otherwise, maybe some shell startup file has a line like

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:$PATH

Ideally login shells should set the path, not .*rc files, but in
practice there's often a mess, especially if you run a non-standard
shell, or run a GUI like my KDE (I've given up trying to set the path
applicable when .desktop files are used).  If you find such a
setting,  you could put an if around it:

if [[ $PATH != */usr/bin:* ]]; then
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:
$PATH
fi

Regards, John

-- 
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

Reply via email to