From 20e984107f13ae97e67b24e426bfd5dc708afa40 Mon Sep 17 00:00:00 2001 From: thomasba Date: Wed, 23 Nov 2016 21:28:27 +0100 Subject: [PATCH] further improvements for vim on windows (auto download plug) --- vim/plug.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vim/plug.vim b/vim/plug.vim index 0bcba29..74df560 100644 --- a/vim/plug.vim +++ b/vim/plug.vim @@ -3,7 +3,10 @@ filetype off " required if has("win32") if !filereadable(expand("~/vimfiles/autoload/plug.vim")) - !curl -fLo \%USERPROFILE\%\.vim\autoload\plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + if !isdirectory(expand('~\vimfiles\autoload')) + execute '!md ' . expand('~\vimfiles\autoload') + endif + execute '!bitsadmin.exe /transfer "vim-plug" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ' . expand('~\vimfiles\autoload\plug.vim') endif call plug#begin('~/vimfiles/plugged') else