alacritty: Running vi Changes Line Cursor to Block Cursor

Which operating system does the issue occur on?

Distributor ID:	Ubuntu
Description:	Ubuntu 19.04
Release:	19.04
Codename:	disco

If on linux, are you using X11 or Wayland? X11

I use a thin cursor - everytime I fire up vi when I exit the cursor is changed to a block cursor. alacrit

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

For me

augroup RestoreCursorShapeOnExit
    autocmd!
    autocmd VimLeave * set guicursor=a:hor20-blinkwait400-blinkoff400-blinkon400
augroup END

did it. You’ll have to tweak guicursor to match alacritty’s.

If I set TERM=tmux-256color instead of screen it fixes the problem, my cursor stays I-Beam in nvim and after exiting. Not sure exactly what’s going on but it looks like the TERMINFO for tmux-256color is telling nvim what cursor to use.