I'm afraid your question isn't clear to me, but let's look at `:help myvimrc`:
Ā Ā Ā c. Five places are searched for initializations. Ā The first that exists
is used, the others are ignored. Ā The `$MYVIMRC` environment variable is
set to the file that was first found, unless `$MYVIMRC` was already set
when using VIMINIT. Ā The `$MYVIMDIR` environment variable is
set to the personal 'rtp' directory, however it is not verified
that the directory actually exists.
I Ā The environment variable VIMINIT (see also |compatible-default|) (*)
Ā Ā The value of $VIMINIT is used as an Ex command line.
II Ā The user vimrc file(s):
Ā Ā "$HOME/.vimrc"
Ā (for Unix) (*)
Ā Ā "$HOME/.vim/vimrc"
Ā (for Unix) (*)
Ā Ā "$XDG_CONFIG_HOME/vim/vimrc" Ā (for Unix) (*)
Ā Ā "s:.vimrc"
Ā (for Amiga) (*)
Ā Ā "home:.vimrc"
Ā (for Amiga) (*)
Ā Ā "home:vimfiles:vimrc"
Ā (for Amiga) (*)
Ā Ā "$VIM/.vimrc"
Ā (for Amiga) (*)
Ā Ā "$HOME/_vimrc"
Ā (for Win32) (*)
Ā Ā "$HOME/vimfiles/vimrc"
Ā (for Win32) (*)
Ā Ā "$VIM/_vimrc"
Ā (for Win32) (*)
Ā Ā "$HOME/config/settings/vim/vimrc"
(for Haiku) (*)
Note: For Unix and Amiga, when ".vimrc" does not exist,
"_vimrc" is also tried, in case an MS-DOS compatible file
system is used. Ā For MS-Windows ".vimrc" is checked after
"_vimrc", in case long file names are used.
Note: For Win32, "$HOME" is checked first. Ā If no "_vimrc" or
".vimrc" is found there, "$VIM" is tried. Ā See |$VIM| for when
$VIM is not set.
III The environment variable EXINIT.
Ā Ā The value of $EXINIT is used as an Ex command line.
IV Ā The user exrc file(s). Ā Same as for the user vimrc file, but with
Ā Ā "vimrc" replaced by "exrc". Ā But only one of ".exrc" and "_exrc" is
Ā Ā used, depending on the system. Ā And without the (*)!
V Ā The default vimrc file, $VIMRUNTIME/defaults.vim. Ā This sets up
Ā Ā options values and has "syntax on" and "filetype on" commands,
Ā Ā which is what most new users will want. Ā See |defaults.vim|.
So, unless you use VIMINIT to set MYVIMRC, MYVIMRC is intended to be set _by Vim_ to the file it finds.
Most folks I know use either ~/.vimrc or ~/.vim/vimrc (with equivalent ~/_vimrc or ~/vimfiles/vimrc on Windows).Ā