VIM - Reload .vimrc file without restarting vim

:so %

NOTE:

  • :so: is short for :source, which reads the content of the specified file and treats it as Vim code.
  • %: Stands for the current file name.
    • See :h current-file.

Another method

Reload vimrc:

:source $MYVIMRC

Display the current vimrc:

:echo $MYVIMRC

returns:

home/peter/.vimrc