I am using gvim. I have checked the location of the RUNTIMEFILE with :echo $RUNTIMEFILE and found that is is located in c:\Programme\vim\vim82.
The file _gvimrc is there indeed. However, I do not have administrator privileges and I cannot write to this directory.
I would prefer to have my _gvimrc in a different directory. I do not find a way of ensuring that gvim finds my personal _gvimrc.
I may ask the administrator once to set a PATH, but I cannot expect continuous support for every edit of _gvimrc.
I have seen many related questions, but none is addressing the issue of no-access to the directory vim82.
:version
command, it's possible that the_gvimrc
you're seeing undervim\vim82
is the system gvimrc file and not the user gvimrc file. Note also that for most settings you want them set in thevimrc
file and not thegvimrc
. Use thegvimrc
file mostly for settings related to fonts or mouse, that are only applicable to the GUI version of Vim. Thevimrc
file is loaded much earlier than thegvimrc
file, so there are many settings that will only work invimrc
. – filbranden♦ Mar 2 at 18:16:help vimrc
that you wantMS-Windows $HOME/_vimrc, $HOME/vimfiles/vimrc
– D. Ben Knoble♦ Mar 2 at 19:07c:\Users\{myname}\_vimrc
and, only for a few GUI things (e.g.'guifont'
and'guioptions'
),c:\Users\{myname}\_gvimrc
. Using_gvimrc
allows me to symlink my cygwin.vimrc
to_vimrc
without having to use things likehas("win32")
or whatever. – B Layer Mar 2 at 21:52