Every now and then I update my ViM configuration, and I would like to have a way to reload everything.
I know that I could use
:source ~/.vimrc
and I could run it similarly for all the modified files. But as vim loads e.g. the system-wide configuration and the content of the ~/.vim/
directory, it can be some effort to source all those files again.
Is there a way to reload the whole set in one command?
Ideally, it should stop sourcing the previous configuration file and resource all anew.
Four places are searched for initializations. The first that exists is used, the others are ignored.
"$HOME/.vimrc" is searched first. And then 4::runtime! plugin/**/*.vim
The result is that all directories in the 'runtimepath' option will be searched for the "plugin" sub-directory and all files ending in ".vim" will be sourced (in alphabetical order per directory), also in subdirectories. But if you using one of plugin-manager it reload your plugins withsource
command I believe.