From 00eccb73fc82f1d4b9bacbac8192f01664eaee33 Mon Sep 17 00:00:00 2001 From: Konfekt Date: Tue, 5 Apr 2016 07:43:27 +0200 Subject: [PATCH] make autocmd work under Windows --- faq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faq.md b/faq.md index 6218e9d..02c487c 100644 --- a/faq.md +++ b/faq.md @@ -6,8 +6,8 @@ Place the following code in your .vimrc before `plug#begin()` call ```vim if empty(glob('~/.vim/autoload/plug.vim')) - silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs - \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + silent exe '!curl -kfLo ' . expand('~/.vim/autoload/plug.vim') + \ . '--create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' autocmd VimEnter * PlugInstall | source $MYVIMRC endif ```