I have installed gvim on Windows.
In order for gvim to find my .vimrc
file I have set the $VIM
(%VIM%) environment variable, pointing to the directory in which this .vimrc file is located.
I have not set $VIMRUNTIME
since :help $vimruntime
says
You don't normally set $VIMRUNTIME yourself, but let Vim figure it out.
When I start gvim, it processes my .vimrc file, as expected, until the line with the command sy on
. This command tries to load the syntax files, but it can't.
I suspect the reason is this: As I have not set $VIMRUNTIME, vim automatically sets it to the value of $VIM. But under $VIM, there is no syntax/syntax.vim
file. This syntax file is, however, under c:\vim\vim73\syntax
.
So, If I set $VIMRUNTIME specifically to c:\vim\vim73
, everything seems to work.
Now, why does the helpfile say I don't need to set $VIMRUNTIME if obviously I have to.