On Sat 20-Jan-07 2:36pm -0600, you wrote:

> I have a little more information on this problem. If a
> _vimrc file is sourced when the program is opened, tab
> completion works. Otherwise, when I tab, I see ^I. I
> tested this in a few different situations.
> 1. No $vimruntime,$vim env variables manually set: menus
> don't work, tab completion doesn't work.

$vimruntime is not getting set correctly.

> 2. No $vimruntime, $vim env vars manually set, and _vimrc
> file in C:\Documents and Settings\Jeff: menus don't work,
> tab completion works (ie vim and vimruntime are by default
> pointing to C:Documents and Settings\Jeff)

You don't specify what's in _vimrc.  Since vim first looks
for _vimrc in $home, it is getting sourced, even though $vim
and/or $vimruntime may be wrong.

> 3. $vim not set, $vimruntime set manually: menus work, tab
> completion doesn't, and _vimrc was not sourced, $vim is
> equal to "C:\Documents and Settings\Jeff"

Is there a copy of gvim.exe under $HOME?  Did you move
_vimrc out of $HOME?

> 4. $vim set manually, $vimruntime not set: menus work, tab
> completion works, and $vimruntime is equal to "C:\Program
> Files\Vim\vim70\", and _vimrc in /vim70 was sourced.

It doesn't seem possible to me that _vimrc could be sourced
from $vimruntime (unless you improperly set $vim to it).

> So the problem appears to be that vim is opening with $vim
> pointing to the wrong spot. Incidentally, even when $vim
> and $vimruntime are manually set, "~/" still points to
> "C:\Documents and Settings\Jeff"

That's because either you set the HOME environment variable
to that or, if $HOME is unset, Vim set it to
$HOMEDRIVE$HOMEPATH - from CMD, you can see this with "echo
%homedrive%%homepath%".

Please try one last thing.

From what you've written, you have gvim.exe installed in
"C:\Program Files\vim\vim70".

Make sure that is what is being executed by typing, from
CMD, the following:

    "c:\program files\vim\vim70\gvim.exe"

In Gvim, type the following:

    :echo $vim $vimruntime $home

The correct results should be:

    c:\program files\vim
    c:\program files\vim\vim70
    c:\documents and settings\jeff

-- 
Best regards,
Bill

Reply via email to