show vimrc location

vim

:echo $MYVIMRC

location

gVimPortable.exe

If you start gvim with gVimPortable.exe, it will load the file XX\gVimPortable\Data\settings_vimrc.

gvim.exe

If you start gvim with gvim.exe, it will load the file C:\Users\XXUSER_vimrc.

linux vim

~/.vimrc