How to include a vim configuration file in another?

2

I am reorganizing / remapping my vim configuration files and would like to leave different language settings in separate files. Something like this:

.vimrc
.vimrc.python
.vimrc.ruby
.vimrc.cpp
.vimrc.js
...

I do not need the language settings to be loaded only for that file type, all of which can be loaded at the same time. I would just like to leave them in separate files, easier to organize and everything.

How would you "include" one configuration file in another?

    
asked by anonymous 16.11.2014 / 04:26

1 answer

4

You can use the source command to call other configuration files, so just put the following in your main configuration file (.vimrc):

source ~/.vimrc.python
source ~/.vimrc.ruby
source ~/.vimrc.cpp
source ~/.vimrc.js
    
16.11.2014 / 05:29