After you answered the question yourself, the focus shifted. It seems the Question is now "How can I prevent Vim from checking for
Try the following:
- Create the file
$USERPROFILE/vimrc with all your configuration.
- Create the environment variable
VIMINIT with the value
On startup the variable
VIMINIT is checked first. If it is set, the value of
$VIMINIT is used as an Ex command line.
Update (I know that the questioner is not interested anymore):
You should also check your
runtimepath. Most likely it still points to
$HOME/vimfiles (on Windows). So you should create the directory
$USERPROFILE/vimfiles to store extended configuration and plugins etc.
At the beginning of
$USERPROFILE/vimrc you have to fix the
I would try it like this:
After that you should still change
$HOME, as others (like netrw) still uses it.
I'm on Linux, so someone should test this on Windows.