diff options
| author | jdhao <jdhao@hotmail.com> | 2019-12-09 16:19:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-09 16:19:36 +0800 |
| commit | 417fb450a246735bb0bbabc187f2e57b026e600c (patch) | |
| tree | 393d723a25dc56fc00f99acece4addf1d86bc04e /plugins.vim | |
| parent | c205ac6bcab01a1925c46c128d14b6fe2c0ba9ee (diff) | |
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.
Diffstat (limited to 'plugins.vim')
| -rw-r--r-- | plugins.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins.vim b/plugins.vim index 6034784..0cef020 100644 --- a/plugins.vim +++ b/plugins.vim @@ -832,5 +832,9 @@ noremap <silent> <ScrollWheelUp> :call comfortable_motion#flick(-40)<CR> """""""""""""""""""""""""" 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 "}} "} |
