From d150dae4325c33c3ea51b37b053ffb16571bae9b Mon Sep 17 00:00:00 2001 From: James Dixon Date: Thu, 3 Dec 2020 16:19:29 -0500 Subject: [PATCH] do not source local config if it does not exist --- files/vim/.vim/vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/vim/.vim/vimrc b/files/vim/.vim/vimrc index e30bc4f..4dd84d5 100644 --- a/files/vim/.vim/vimrc +++ b/files/vim/.vim/vimrc @@ -10,4 +10,7 @@ source ~/.vim/keybinds.vim source ~/.vim/plugins.vim source ~/.vim/colorschemes.vim source ~/.vim/autocmds.vim -source ~/.config/vimrc + +if filereadable(expand("~/.config/vimrc")) + source ~/.config/vimrc +endif