" Load from init.d instead of plugin directory. This is done so a leader key " can be set before loading plugin settings. This allows the plugin setting " files to set mappings with leader keys for f in split(glob('~/.vim/init.d/*.vim'), '\n') exe 'source' f endfor " The plugged plugin manager function calls need to be called between the " plug#begin and plug#end. Because of that, using the normal plugin directory " loading won't work. call plug#begin('~/.vim/plugged') for f in split(glob('~/.vim/plug.d/*.vim'), '\n') exe 'source' f endfor call plug#end()