include all vim files in a folder
Posted
by
queueoverflow
on Super User
See other posts from Super User
or by queueoverflow
Published on 2012-06-18T09:02:02Z
Indexed on
2012/06/18
9:18 UTC
Read the original article
Hit count: 260
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.
© Super User or respective owner