[vim] Escape % and # when running source command with :!

This commit is contained in:
Junegunn Choi 2015-08-24 01:52:16 +09:00
parent 148f21415a
commit 8fb31e1b4d

View File

@ -218,7 +218,7 @@ function! s:execute(dict, command, temps)
else
let command = a:command
endif
execute 'silent !'.command
execute 'silent !'.escape(command, '%#')
redraw!
if v:shell_error
" Do not print error message on exit status 1