From c205ac6bcab01a1925c46c128d14b6fe2c0ba9ee Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 9 Dec 2019 13:17:53 +0800 Subject: [PATCH 1/3] Update spell settings --- options.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/options.vim b/options.vim index 210cbe6..c4df36d 100644 --- a/options.vim +++ b/options.vim @@ -141,6 +141,7 @@ let g:MY_DICT = expand(g:nvim_config_root . '/dict/words') let &dictionary = &dictionary . ',' . g:MY_DICT set spelllang=en,cjk " Spell languages +set spellsuggest+=10 " The number of suggestions shown in the screen for z= " Align indent to next multiple value of shiftwidth. For its meaning, " see http://tinyurl.com/y5n87a6m From 417fb450a246735bb0bbabc187f2e57b026e600c Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 9 Dec 2019 16:19:36 +0800 Subject: [PATCH 2/3] 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 "}} "} From 5771a86c0d77d0c56791b78046e314103f526721 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 9 Dec 2019 16:22:19 +0800 Subject: [PATCH 3/3] Fix an issue with AsyncRun.vim Change the output of Python from Buffered to Unbuffered so that we can see the command output immediately instead of waiting for the command to finish to see the output. See https://github.com/skywind3000/asyncrun.vim/wiki/FAQ#cant-see-the-realtime-output-when-running-a-python-script and https://stackoverflow.com/questions/107705/disable-output-buffering. --- after/ftplugin/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index a0bc092..67eb0c8 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -1,3 +1,3 @@ if exists(':AsyncRun') - nnoremap :AsyncRun python "%" + nnoremap :AsyncRun python -u "%" endif