Devon Ville
Devon Ville

Reputation: 2091

Sourcing Vim settings inside .vimrc

I've been trying to order my .vimrc a bit -
divide everything into different files and source everything in it:

source ~/.vim/settings/general.vim
source ~/.vim/settings/functions.vim
source ~/.vim/settings/bindings.vim
source ~/.vim/plugins/autocorrect/plugin/autocorrect.vim
source ~/.vim/settings/playground.vim

The general.vim contains all the settings of Vim (e.g. set nocompatible).
So far, only binding.vim and autocorrect.vim seem to work.
The first two files have to be included in the .vimrc for them to work.

Does anyone have any idea as to why?

Upvotes: 3

Views: 311

Answers (1)

Devon Ville
Devon Ville

Reputation: 2091

Got it. It eventually WAS an issue of trailing spaces, only I failed to recognize it with the text editor. When removed, it worked perfectly.

Upvotes: 1

Related Questions