My customized _vimrc
file is saved at $HOME
which is here:
M:_vimrc
Could I move _vimrc
to say the following location and still have gvim find it ok?
M:\UsefulDirectoryName_vimrc
My customized _vimrc
file is saved at $HOME
which is here:
M:_vimrc
Could I move _vimrc
to say the following location and still have gvim find it ok?
M:\UsefulDirectoryName_vimrc
:help vimrc
says
Recommended place for your personal initializations:
Unix $HOME/.vimrc
OS/2 $HOME/.vimrc or $VIM/.vimrc (or _vimrc)
MS-DOS and Win32 $HOME/_vimrc or $VIM/_vimrc
Amiga s:.vimrc or $VIM/.vimrc
So, you can set $VIM
to UsefulDirectoryName
and give it a try.
Vim will only find your _vimrc
if it's at one of these two locations:
$HOME/_vimrc
$VIM/_vimrc
If you want to use a different location you'll have to tell Vim where your _vimrc
is. You can:
vim -u /path/to/_vimrc
$HOME/_vimrc
, source /path/to/_vimrc