How do you reload your .vimrc file without restarting vim

vimvimrc

Can you edit your .vimrc file and reload it without having to restart Vim?

Best Answer

If you're editing it, you can reload it with:

:so %

% stands for current file name (see :h current-file) and :so is short for :source, which reads the content of the specified file and treats it as Vim code.

In general, to re-load the currently active .vimrc, use the following (see Daily Vim):

:so $MYVIMRC