include all vim files in a folder
- by queueoverflow
For my .bashrc I have a lot of small snippet files in .config/bash, like 10-prompt.sh and so on. In my actual .bashrc, I just have the following:
configdir="$HOME/.config/bash"
for file in "$configdir"/*.sh
do
source "$file"
done
I'd like to do the same for my .vimrc, but I am not that confident in VimL that I could write that.
How would the snippet for .vimrc look like that includes all the snippets in a given subfolder? Ideally, I'd like to make a .vim/rc/ folder where I can put my snippets into.