I am on a quest to put all my various configuration files under source control, so I now have a folder called ~/dotfiles which contains various configuration files in a git repository. The dotfiles in the home directory simply call files inside the dotfiles folder.
I wanted to do this also for the vim configuration file, but I was not sure what the syntax was for calling a configuration file from within another configuration file. For files like .bashrc or .zshrc, I can use the source keyword, or simply the dot.
It turns out that we can use the source keyword in the vimrc as well, so in my home directory I now have a one-line .vimrc file containing the following line:
source ~/dotfiles/vimrc
Maybe this is obvious to most, but it took me a while to find it out, so maybe this information can be useful for others as well.