Search notes:

vim script: $ MYVIMRC

" $MYVIMRC points to the vimrc file with which vim was started.
Github repository about-vim, path: /vimscript/variables/internal/$_MYVIMRC.vim

See also

vimrc
The value of the variable MYVIMRC (or MYGVIMRC) is assigned in vimrc_found().
VIM script

Index