From 799e20a6821620fd4691d90f1c3f6bbdebee9458 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 28 Jan 2016 13:35:50 +0900 Subject: [PATCH] Better error message when git executable is not found Related: #392, #52 --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index ab1c1f7..203d2eb 100644 --- a/plug.vim +++ b/plug.vim @@ -115,7 +115,7 @@ endfunction function! s:define_commands() command! -nargs=+ -bar Plug call s:add() if !executable('git') - return s:err('`git` executable not found. vim-plug requires git.') + return s:err('`git` executable not found. Most commands will not be available. To suppress this message, prepend `silent!` to `call plug#begin(...)`.') endif command! -nargs=* -bar -bang -complete=customlist,s:names PlugInstall call s:install(0, []) command! -nargs=* -bar -bang -complete=customlist,s:names PlugUpdate call s:update(0, [])