neovim automatically set my cursor from vertical line to box on konsole
and when I quit neovim the cursor is still a black box
neovim automatically set my cursor from vertical line to box on konsole
and when I quit neovim the cursor is still a black box
add
let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0
to your init.vim
Refer to:
For newer versions of NeoVim you should use guicursor
.
For detailed config, see -
:help 'guicursor'
in NeoVim.
The default config:
set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50
\,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor
\,sm:block-blinkwait175-blinkoff150-blinkon175
For your requirements, adding
set guicursor=i-ci-ve:ver25
in init.vim
should be enough.
This solved the issue for me (I was getting a weird artifact in place of a cursor in neovim). @Firestar what’s ur opinion?
:set guicursor=
works
let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0
do not work
set guicursor=i-ci-ve:ver25
do not work
Any better ideas?
Does it solve the issue?
:set guicursor=
" Workaround some broken plugins which set guicursor indiscriminately.
:autocmd OptionSet guicursor noautocmd set guicursor=
I don’t know if it’s the best solution.
My old vimrc which used for vim is:
let &t_SI.="\e[5 q"
let &t_SR.="\e[5 q"
let &t_EI.="\e[5 q"