mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
parent
7eff15e30a
commit
e264a17d98
@ -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 = "\<Esc>]50;CursorShape=1\x7"
|
||||
"silent! let &t_SR = "\<Esc>]50;CursorShape=2\x7"
|
||||
|
Loading…
Reference in New Issue
Block a user