Changing Vim Home Directory
Posted
by
mcaaltuntas
on Super User
See other posts from Super User
or by mcaaltuntas
Published on 2011-10-13T09:18:28Z
Indexed on
2013/06/30
22:23 UTC
Read the original article
Hit count: 227
vim
Previously I've been using vim without any problems. However a few months ago our company made some network and security updates. After that whenever I plug a network cable into my laptop, it creates a network shared drive "H" with my company name and when I try to open vim it doesn't load plugins and other things that are in my vim home directory.
I have found the reason but I don't know how to solve it. The problem is that these network updates changed our HOME directory. When I write:
echo $HOME
It prints H. Before plugging in a network cable my home was C:\Users\blabla.
How can I change my HOME variable? When I run set
it prints:
C:\Windows\System32>set | findstr /R "^HOME"
HOMEDRIVE=H:
HOMEPATH=\
HOMESHARE=\\companyname\blabla\username$
© Super User or respective owner