From 5bb014d45e871ed54e2b910d4131c92e55a932b0 Mon Sep 17 00:00:00 2001 From: Loic Reyreaud Date: Fri, 3 Mar 2017 09:49:08 +0100 Subject: [PATCH] Updated choice of command for rmdir on windows OS --- autoload/vundle/installer.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 472271a..965efef 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -278,8 +278,8 @@ endf " --------------------------------------------------------------------------- func! vundle#installer#delete(bang, dir_name) abort - let cmd = ((has('win32') || has('win64')) && empty(matchstr(&shell, 'sh'))) ? - \ 'rmdir /S /Q' : + let cmd = (has('win32') || has('win64')) ? + \ 'cmd /C rmdir /S /Q' : \ 'rm -rf' let bundle = vundle#config#init_bundle(a:dir_name, {})