Changing Vim Home Directory

Solution 1:

You can set HOME to whatever you like by

set HOME=h:\example_directory\ (or something)

(or go to Control Panel\System\Advanced\Environmental ... and create an enviromental variable of that name there)

but why not place Vim in some directory so that

\gvim
\gvim\_vimrc
\gvim\vim73\
\gvim\vimfiles

is your order of files & folders. That way if nothing is found at HOME it will still find the relevant files (it should).

Solution 2:

You can put your vim files in a different place. My Ubuntu system gives me the following list:

   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"

Try putting the files in $VIM, which will probably be C:\Program Files\Vim or similar.