Skip to content

Commit

Permalink
Prepend 'silent' to ':!' to avoid hit-enter prompt (junegunn#678)
Browse files Browse the repository at this point in the history
Close junegunn#606

Fix for GVim on Windows.
  • Loading branch information
janlazo authored and junegunn committed Sep 19, 2017
1 parent 05c8983 commit 7f96c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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\<cr>\<cr>"
finally
unlet g:_plug_bang
Expand Down

0 comments on commit 7f96c98

Please sign in to comment.