From 7f96c98b0ab167950603bd123ca6f530a8f09a18 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 19 Sep 2017 00:53:35 -0400 Subject: [PATCH] Prepend 'silent' to ':!' to avoid hit-enter prompt (#678) Close #606 Fix for GVim on Windows. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index f2080fd..ceb2762 100644 --- a/plug.vim +++ b/plug.vim @@ -802,7 +802,7 @@ function! s:bang(cmd, ...) call writefile(['@echo off', cmd], batchfile) let cmd = batchfile endif - let g:_plug_bang = '!'.escape(cmd, '#!%') + let g:_plug_bang = (s:is_win && has('gui_running') ? 'silent ' : '').'!'.escape(cmd, '#!%') execute "normal! :execute g:_plug_bang\\" finally unlet g:_plug_bang