From c09a1cad5da33602344027367a57814d0c283078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B4=E7=B3=95=E5=B0=8F=E8=B1=86=E6=B1=A4?= Date: Sun, 19 Aug 2018 22:12:13 +0800 Subject: [PATCH] fix #65 https://github.com/iamcco/markdown-preview.vim/issues/65 --- autoload/mkdp.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/mkdp.vim b/autoload/mkdp.vim index a8f6ad6..f9255cb 100644 --- a/autoload/mkdp.vim +++ b/autoload/mkdp.vim @@ -100,13 +100,13 @@ fun! s:serverStart() abort "function for starting the server if exists('g:mkdp_open_to_the_world') let l:cmd = l:cmd . ' 0.0.0.0' endif - exec l:cmd + exec l:cmd | redraw else let l:cmd = "python " . s:path_to_server . " " . g:mkdp_port if exists('g:mkdp_open_to_the_world') let l:cmd = l:cmd . ' 0.0.0.0' endif - call system(l:cmd . " >/dev/null 2>&1 &") + call system(l:cmd . " >/dev/null 2>&1 &") | redraw endif endfun