Change your home directory in vim

I think Vim should set $HOME to ${HOMEDRIVE}${HOMEPATH} unless you already have %HOME% set to something else in the Windows environment.

If you start a Command Prompt, and run:

set | findstr /R "^HOME"

I think you should see

HOMEDRIVE=E:
HOMEPATH=\Users\Administrator

I suspect that either the HOMEDRIVE is still set to C: (your change of Users folder didn't take) or there's a setting there for HOME too.


You could set the environment variable VIMINIT to source E:/Users/Administrator/vimrc. Then in that vimrc file you'll need to set the 'runtimepath' option to an appropriate value to find all your plugins. See

:help VIMINIT
:help 'runtimepath'

Tags:

Vim