I have a directory ~/.vim/rc.d/ that houses various configuration files. I like this pattern for configuring various things in my homedir because it modularizes configuration options.
The problem is that my vimrc is now a series of commands to source hard-coded paths to other .vim files.
source ~/.vim/rc.d/00-plugins.vim source ~/.vim/rc.d/01-plugins-settings.vim source ~/.vim/rc.d/02-interface-colorscheme.vim source ~/.vim/rc.d/02-interface-listchars.vim
How can I rewrite this to source all the files in that directory that end in .vim?