[vim] Ability to use the .vimrc.local

This commit is contained in:
Mathieu Maret 2015-12-08 15:00:03 +01:00
parent 15e2ce5cf9
commit d6763ca8e8
1 changed files with 12 additions and 0 deletions

12
.vimrc
View File

@ -420,6 +420,18 @@ map <S-F9> :GitGutterLineHighlightsToggle <CR>
nnoremap <silent> <leader>k :SetLinuxFormatting<cr><cr>
""""""""""
" 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"
"""""""""