I use gvim 7.2 script dev and other admin work on a Windows XP laptop and it has picked my network share as the location of the _viminfo. This is problematic because it takes a long time for vim to start. Is there a way to change the location of _viminfo file with out modifying my environment.
viminfo option to set the location of your
More information is available from Vim's online help ...
$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.
if you are on windows, simplest thing to do is use setlocal, endlocal and set your home drive to something else in between.
for example, edit your C:\Windows\vim.bat
at top, add line
setlocal REM then set your home drive to something local like C: or D set HOMEDRIVE=D: REM at bottom final line should be: endlocal