wincent / terminus

🖥 Enhanced terminal integration for Vim
BSD 2-Clause "Simplified" License
463 stars 25 forks source link

Inconsistent cursor change when in Insert mode #51

Closed lc-at closed 1 year ago

lc-at commented 1 year ago

What I'm Using

I am currently using Terminus with Vim (8.2), tmux (3.1c), and urxvt-unicode (9.22).

Problem

The behaviour of the cursor when Insert mode is inconsistent. The problem is demonstrated in the following image (it's in insert mode).

caught-error2

I can't seem to reproduce it.

Configuration

Relevant tmux.conf lines:

# Enable urxvt cursor escape feature
# https://groups.google.com/g/tmux-users/c/pJSh_A-5SQg/m/4TkRLt2eAAAJ
set -as terminal-overrides 'rxvt-unicode*:Ss=\E[%p1%d q:Se=\E[2 q'

# Report focus events
set -g focus-events on

I also changed line 55 on ~/.vim/bundle/terminus/plugin/terminus.vim

let s:cursor_shape_to_vte_shape={1: 5, 2: 3, 0: 1}

to get the blinking cursor (does this matter?)

wincent commented 1 year ago

Realistically, given that the issue is intermittent, and reliant on a very specific config (I'm guessing that urxvt-unicode is probably the critical element here, and not Vim itself, or tmux, but you never know), I'm very unlikely to be able to hunt this down and reproduce it myself.

If you or somebody else can get to the bottom of it, I'm definitely open to reviewing a pull request though.

wincent commented 1 year ago

Closing due to inactivity.