mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 02:25:35 -07:00
Prepend 'silent' to ':!' to avoid hit-enter prompt (#678)
Close #606 Fix for GVim on Windows.
This commit is contained in:
parent
05c8983d1a
commit
7f96c98b0a
2
plug.vim
2
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\<cr>\<cr>"
|
||||
finally
|
||||
unlet g:_plug_bang
|
||||
|
Loading…
Reference in New Issue
Block a user