I have a
$HOME\_vimrc present, but it doesn't show up in the output of
:scriptnames. And when I run
gvim -V, it reports:
could not source "$HOME\_vimrc"
The only thing in my
$HOME\_vimrc is the following line:
In case there was something wrong with that path, I also changed the entire contents of the
$HOME\_vimrc file to this, with the same result:
When I run
:echo $HOME from gvim, it reports my Windows user profile directory
C:\Users\username. I have a
$HOME\_gvimrc which it reads fine. My vimfiles directory is at the default
$HOME\vimfiles which it seems to read fine, because it's sourcing a color scheme from there.
:version shows the following entries:
system vimrc file: "$VIM\vimrc" user vimrc file: "$HOME\_vimrc" 2nd user vimrc file: "$HOME\vimfiles\vimrc" 3rd user vimrc file: "$VIM\_vimrc" [...] user gvimrc file: "$HOME\_gvimrc" [...]
:echo $MYVIMRC outputs
C:\Program Files (x86)\Vim\_vimrc.
I've tried running as both administrator and my Windows username.
Is there something I'm missing?
The output of
C:\Users\username> icacls _vimrc _vimrc NT AUTHORITY\SYSTEM:(I)(F) BUILTIN\Administrators:(I)(F) DOMAIN\username:(I)(F)
That last entry, DOMAIN\username, is the login I'm using to run gVim.