Monday, March 7, 2011

How do you reload your .vimrc file without restarting vim?

How do you reload your .vimrc file without restarting vim?

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

:so %

Note: % stands for current file name

Note: :so is short for :source which reads the content of the specified file and treats it as Vim code.

Or specify the file path:
:so $MYVIMRC

No comments: