Skip to content

Commit 7f96c98

Browse files
janlazojunegunn
authored andcommitted
Prepend 'silent' to ':!' to avoid hit-enter prompt (#678)
Close #606 Fix for GVim on Windows.
1 parent 05c8983 commit 7f96c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plug.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ function! s:bang(cmd, ...)
802802
call writefile(['@echo off', cmd], batchfile)
803803
let cmd = batchfile
804804
endif
805-
let g:_plug_bang = '!'.escape(cmd, '#!%')
805+
let g:_plug_bang = (s:is_win && has('gui_running') ? 'silent ' : '').'!'.escape(cmd, '#!%')
806806
execute "normal! :execute g:_plug_bang\<cr>\<cr>"
807807
finally
808808
unlet g:_plug_bang

0 commit comments

Comments
 (0)