From d6763ca8e8bda358e75c4523814ee1bbbd87c3e4 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 8 Dec 2015 15:00:03 +0100 Subject: [PATCH] [vim] Ability to use the .vimrc.local --- .vimrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.vimrc b/.vimrc index 8030843..a29cfa7 100644 --- a/.vimrc +++ b/.vimrc @@ -420,6 +420,18 @@ map :GitGutterLineHighlightsToggle nnoremap k :SetLinuxFormatting +"""""""""" +" LocalConfig +"""""""""" + +if filereadable(expand('~/.vimrc.local')) + " Plugins list and settings should be loaded + " only once. Load local_settings block + let g:local_plugins = 0 + let g:local_settings = 1 + source ~/.vimrc.local +endif + """"""""" " Plugin" """""""""