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

pull/326/head
Junegunn Choi 9 years ago
parent 148f21415a
commit 8fb31e1b4d

@ -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

Loading…
Cancel
Save