diff --git a/vimrc b/vimrc index 70df7c7..2080d6e 100644 --- a/vimrc +++ b/vimrc @@ -4,6 +4,11 @@ let mapleader = ' ' " Plugins call plug#begin('~/.vim/bundle') +" Load local plugins first, allows local dev whilst also being installed. +if filereadable(expand('~/.vim/local.vim')) + source ~/.vim/local.vim +endif + " vim-airline - improved status bar Plug 'vim-airline/vim-airline' for setting in ['left_sep', 'right_sep', 'section_error', 'section_warning'] @@ -152,8 +157,4 @@ Plug 'asciidoc/vim-asciidoc' Plug 'mustache/vim-mustache-handlebars' Plug 'joshglendenning/vim-caddyfile' -if filereadable(expand('~/.vim/local.vim')) - source ~/.vim/local.vim -endif - call plug#end()