From: Stefan Huber Date: Thu, 6 Dec 2012 08:26:20 +0000 (+0100) Subject: vim: check for .*vimrc-local files before loading X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=c7e790b9b976ff4be6226a4baaaffe19c01e7aaa;p=shutils.git vim: check for .*vimrc-local files before loading --- 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