aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-12-09 23:22:04 +0800
committerjdhao <jdhao@hotmail.com>2019-12-09 23:22:04 +0800
commit9d85a46383d8c3d418fbfa339942e6cbbc1f7615 (patch)
tree472fca18f1ea0041076a4f2f5d5490726d8b3d96
parent62d8266f0778724d8f2510e8b3df9b4d57a29da2 (diff)
parent5771a86c0d77d0c56791b78046e314103f526721 (diff)
Merge branch 'master' of https://github.com/jdhao/nvim-config
-rw-r--r--after/ftplugin/python.vim2
-rw-r--r--options.vim1
-rw-r--r--plugins.vim4
3 files changed, 6 insertions, 1 deletions
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 <silent> <F9> :AsyncRun python "%"<CR>
+ nnoremap <silent> <F9> :AsyncRun python -u "%"<CR>
endif
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
diff --git a/plugins.vim b/plugins.vim
index aba7477..cb51cca 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
"}}
"}