]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - vimrc
Update watched repositories.
[dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 712d0c0b3245ec20a6bfbaa520ad5ee9b27d66f4..09fa0d28bb2111b4a99c0c67cf56b463ca1026a7 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -21,6 +21,15 @@ set omnifunc=syntaxcomplete#Complete
 
 filetype off                  " required
 
+" =================
+" Install vim-plug if missing
+" =================
+let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
+if empty(glob(data_dir . '/autoload/plug.vim'))
+  silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
+  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
+endif
+
 " =================
 " Here be Plugins!
 " =================
@@ -46,7 +55,7 @@ Plug 'pprovost/vim-ps1'
 " Plug NLKNguyen/papercolor-theme
 "
 "
-Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
+" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
 
 call plug#end()