Yongwei Wu wrote:
On 8/17/06, o1792 <[EMAIL PROTECTED]> wrote:
Hi,

I'm using vim7 for win32, but actually I've had the
following prob with vim6.3.

The prob is that _viminfo goes on walkabout when I'm
connected to my corp's network. It thinks it should be
stored in a networked drive, which is read-only, so I
get errors.

Probably isn't a vim problem, but may be my win32
which is telling the interface vim4win32 uses that
_viminfo should lose itself in a networked drive.

When I use the pc standalone, this problem does not
occur.

Has anybody had similar problems and sorted it out?
Advice welcome. Thanks in advance.

Just one thought, try typing "set HOME" in a Command Prompt to check
the values of the environment variables HOME, HOMEDRIVE, and HOMEPATH.


Also, you can tell Vim to put the viminfo at any place of your choice by using the "n" suboption to 'viminfo'. Beware: that suboption must be _last_ in 'viminfo.

Example, to write the viminfo in the root directory of the filesystem:

    if has("viminfo")
        if has("unix")
            set viminfo='50,<1000,s100,:0,n/.viminfo
        else " Windows
            set viminfo='50,<1000,s100,:0,nC:\\_viminfo
        endif
    endif


Best regards,
Tony.

Reply via email to