From 832966d06065a9caf8663e726fa0263c3740af79 Mon Sep 17 00:00:00 2001 From: thomasba Date: Wed, 23 Nov 2016 22:08:20 +0100 Subject: [PATCH] Added a few comments --- vim/plug.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/plug.vim b/vim/plug.vim index 74df560..3c9e588 100644 --- a/vim/plug.vim +++ b/vim/plug.vim @@ -1,11 +1,15 @@ set nocompatible " be iMproved, required filetype off " required +" on windows we have different paths … if has("win32") + " if plug isnt downloaded yet, grab it from the internet if !filereadable(expand("~/vimfiles/autoload/plug.vim")) + " but first check if the autoload folder exists, if not: create it if !isdirectory(expand('~\vimfiles\autoload')) execute '!md ' . expand('~\vimfiles\autoload') endif + " download vim-plug using bitsadmin (yeah i know, it’s deprecated) 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')