Change location _viminfo file on Windows
Solution 1:
Use the viminfo
option to set the location of your _viminfo
. eg
:set viminfo=nC:\\_viminfo
More information is available from Vim's online help ...
:help viminfo
Solution 2:
The $HOME
on your login mapped to the network drive is probably causing this.
The easiest way to override this it with an alias that makes vim
pick a specific viminfo file.
vim -i _viminfo
However, if you choose C:\
as the path for your viminfo file on a shared machine, the next person trying the same trick may pickup your viminfo file. So, it might be prudent to use,
vim -i _vim-yourname
Finally, to get this working on your machine, you can make a shortcut to vim
that has the -i
setting defined in it.