Difference between .vimrc and .exrc?

What is the difference between .vimrc and .exrc? I google it but didn't find the brief explanation?

Regards
ADI

Well, .exrc was established by the original ex before there was a vi. The name vi means visual ex. The name ex means extended ed: LINUX Man Pages and LINUX Commands at the UNIX and Linux Forums When the open source people wrote vi replacements, notably vim, they had the option to make additional configuration files for options in vim that are not ex/vi compatible. It is a bit like sh, ksh, bash, relative to .profile , $ENV, /etc/profile, /etc/suid-profile, .kshrc, .bashrc, .bash_profile, .bash_login.

The man page lists a bushel of config files down at the end: Man Page for vim (all Section 0) - The UNIX and Linux Forums

They have the same purpose.

Only vim looks for $HOME/.vimrc file. vim can also use $HOME/.exrc file, as can any vi editor.

Only one of $HOME/.vimrc and $HOME/.exrc is read by vim, whichever it finds first. To prevent confusion, I would suggest just use one file, and delete the other one.

I just use $HOME/.exrc file and do not have the $HOME/.vimrc file.