From c7e790b9b976ff4be6226a4baaaffe19c01e7aaa Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 6 Dec 2012 09:26:20 +0100 Subject: [PATCH] vim: check for .*vimrc-local files before loading --- dotfiles/vim/.gvimrc | 10 ++++++++++ dotfiles/vim/.vimrc | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dotfiles/vim/.gvimrc b/dotfiles/vim/.gvimrc index 1b2d6e6..1e5b38e 100644 --- a/dotfiles/vim/.gvimrc +++ b/dotfiles/vim/.gvimrc @@ -26,3 +26,13 @@ endfunction :menu Presentation.On :call SetPresentationFont(1) :menu Presentation.Off :call SetPresentationFont(0) + + +"" {{{ vimrc.local +if filereadable($HOME . "/.gvimrc-local") + source ~/.gvimrc-local +endif +" }}} + + + diff --git a/dotfiles/vim/.vimrc b/dotfiles/vim/.vimrc index 739ae07..e65aba1 100644 --- a/dotfiles/vim/.vimrc +++ b/dotfiles/vim/.vimrc @@ -319,6 +319,9 @@ let g:SuperTabDefaultCompletionType = 'context' "let g:SuperTabDefaultCompletionType = '' -source ~/.vimrc-local + +if filereadable($HOME . "/.vimrc-local") + source ~/.vimrc-local +endif -- 2.39.5