I know this particular Vim is ancient (6.2.18), and I suspect the
issue probably has something to do with my shell setup and may not
strictly be a Vim problem, but can anyone shed light on the following?
My login shell is tcsh, on a Solaris server (I'm not sure which
version or how to find out). $PATH has been set via setenv in a pre-
build script to set up the build environment for a specific cross-
compiler based on gcc.
> echo $PATH
/rfs/proj/core-all/core-api/ppc/usr/tools:/los-178/2.2.2/rsc/cdk/sunos-
xcoff-ppc/bin:/los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/usr/bin:/usr/ucb:/
opt/sfw/bin:/opt/sfw/bin:/opt/sfw/bin:/usr/bin:.:/bin:/rfs/apps/bin:/
usr/bin/X11:/usr/ccs/bin:/usr/atria/bin:/usr/atria/bin:/usr/atria/bin
> which gcc
/los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/bin/gcc
> gvim
:echo $PATH
/rfs/proj/core-all/core-api/ppc/usr/tools:/los-178/2.2.2/rsc/cdk/sunos-
xcoff-ppc/bin:/los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/usr/bin:/usr/ucb:/
opt/sfw/bin:/opt/sfw/bin:/opt/sfw/bin:/usr/bin:.:/bin:/rfs/apps/bin:/
usr/bin/X11:/usr/ccs/bin:/usr/atria/bin:/usr/atria/bin:/usr/atria/bin
:echo system('which gcc')
/opt/sfw/bin/gcc
:echo globpath(substitute($PATH, ':', ",", 'g'), "gcc")
/los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/bin/gcc
/los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/usr/bin/gcc
/opt/sfw/bin/gcc
/opt/sfw/bin/gcc
/opt/sfw/bin/gcc
/rfs/apps/bin/gcc
My real problem, is that :make invokes the wrong gcc (/opt/sfw/bin/
gcc, instead of /los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/bin/gcc). I
find myself going back to an xterm to run 'make |& tee make.out' and
then using cfile within Vim, rather than just running :make! in Vim.
Obviously this is not a huge issue, just an annoyance, but if the fix
is simple it will be well worth it to me.
I do intend to eventually compile my own Vim (my IT department refuses
to install a newer version) but since I don't have admin rights and
almost none of the required development libraries are installed, I
know it will be quite involved, so I haven't gotten to it yet.
--
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