From e264a17d98696e1d5b2fd0d496615035e6c06fe8 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 27 Jun 2017 16:00:36 +0800 Subject: [PATCH] Fix guicorsor setting close #666 --- config/neovim.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/neovim.vim b/config/neovim.vim index b5bccfd80..198bdce60 100644 --- a/config/neovim.vim +++ b/config/neovim.vim @@ -23,6 +23,16 @@ endfunction if !s:has('nvim-0.2.0') let $NVIM_TUI_ENABLE_CURSOR_SHAPE = g:spacevim_terminal_cursor_shape else + if g:spacevim_terminal_cursor_shape == 0 + " prevent nvim from changing the cursor shape + set guicursor= + elseif g:spacevim_terminal_cursor_shape == 1 + " enable non-blinking mode-sensitive cursor + set guicursor=a:block-blinkon0 + elseif g:spacevim_terminal_cursor_shape == 2 + " enable blinking mode-sensitive cursor + set guicursor=n-v-c:block-blinkon10,i-ci-ve:ver25-blinkon10,r-cr:hor20,o:hor50 + endif endif "silent! let &t_SI = "\]50;CursorShape=1\x7" "silent! let &t_SR = "\]50;CursorShape=2\x7"