Reload .vimrc in Vim without restart

vim

It bothers me when I wrote something into .vimrc and I have to close it first and open to get my changes be applied.
Is there a way of reload .vimrc in Vim without closing it?

E.g. I've added set nu to ~/.vimrc and I want line numbers to appear for all my windows and buffers.

Best Answer

:source ~/.vimrc

Run that from inside vim, that will apply your .vimrc

Alternately

:source $MYVIMRC

Related Question