Windows Gvim setup for proper colors
#!/bin/bash
# Here's the Mac/Linux makelinks:
ln -s -f ~/gvr/ctags.cnf ~/.ctags
ln -s -f ~/gvr/_vimrc ~/.vimrc
ln -s -f ~/gvr/vimfiles ~/.vim
ln -s -f ~/gvr/dotfiles/gitconfig.mac ~/.gitconfig
ln -s -f ~/gvr/dotfiles/emacs.d ~/.emacs.d
for i in bashrc bash_aliases bash_profile bash_logout profile viper
do
ln -s -f ~/gvr/dotfiles/$i ~/.$i
done setx /S %COMPUTERNAME% /U %USERNAME% HOME %HOMEPATH%
REM And the Windows one. Note %HOME% is set to C:\gvr:
:: Vista or Win7 only. Must be run as Administrator from a cmd window
pushd %~dp0
for %%i in (bash* profile viper) do (mklink ..\.%%i dotfiles\%%i)
mklink ..\.gitconfig dotfiles\gitconfig.msys
mklink /d ..\.emacs.d dotfiles\emacs.d
mklink /d ..\Dropbox "%USERPROFILE%\Dropbox"
popd Gvim on Windows is dumb and still looks for $HOME, but if its isn't setup in the environment variables for the user/system then it defaults to the Vim_gvimrc in Program Files and this can mess things up.
Make sure if you are adding themes via a plugin manager (Pathogen/Vundle/VimPlug) you need to use your colorscheme activation AFTER you plugin initialization, other wise the theme can't be found because its not in the typical .vim/colors path.