Benji -
> On Fri, Apr 14, 2006 at 09:24:35PM -0400, Benji Fisher wrote:
> > On Fri, Apr 14, 2006 at 03:11:13PM +0200, Bram Moolenaar wrote:
> > >
> > > Check: it doesn't matter how you started the Vim in which you do
> > > ":!gvim"?
> >
> > Good question. This works:
> >
> > $ vim -u NONE
> > :!gvim
> >
> > But guess what? This works, too:
> >
> > $ vim -u ~/.vimrc
> > :!gvim
>
> Another thing that works: if I fire up vim 7.0c01 then both
>
> :!gvim " vim 7.0d
> :!vim7c/src/vim -g " vim 7.0c01
>
> work. Of course, with this version,
>
> :echo $MYVIMRC
>
> does nothing. (I mention this because it is the only part of the code I
> know of that was added recently and cares about -u arguments.)
Hmm, I did fix a problem for setting $MYVIMRC: in vimrc_found() the
"dofree" option wasn't initialized to FALSE. If this is missing in your
source code is missing that might be the cause of the crash.
The start of the vimrc_found() function should look like this:
void
vimrc_found(fname, envname)
char_u *fname;
char_u *envname;
{
int opt_idx;
int dofree = FALSE;
char_u *p;
- Bram
--
>From "know your smileys":
+<(:-) The Pope
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///