From 417fb450a246735bb0bbabc187f2e57b026e600c Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 9 Dec 2019 16:19:36 +0800 Subject: [PATCH] Fix asyncrun command output issue for Chinese The command output returned by Windows system may not be encoded in utf-8 format. We need to set the format explicitly. --- plugins.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins.vim b/plugins.vim index 6034784..0cef020 100644 --- a/plugins.vim +++ b/plugins.vim @@ -832,5 +832,9 @@ noremap :call comfortable_motion#flick(-40) """""""""""""""""""""""""" asyncrun.vim settings """""""""""""""""""""""""" " Automatically open quickfix window of 6 line tall after asyncrun starts let g:asyncrun_open = 6 +if has('win32') + " Command output encoding for Windows + let g:asyncrun_encs = 'gbk' +endif "}} "}