drmikehenry / vim-fixkey

https://github.com/drmikehenry/
125 stars 10 forks source link

Regression on latest commit - alt+keys stop working #16

Closed atweiden closed 1 year ago

atweiden commented 1 year ago

Reverting 454c19d1274679a8b34b7fe9bda18cae90852431 fixes keybindings for me. I haven’t investigated why.

drmikehenry commented 1 year ago

You haven't said which terminal (and version) you are using, which operating system, or which Vim version, so I can make only general comments and I can't test whether it works for me in that configuration.

atweiden commented 1 year ago

Thanks for the help. It seems to be a tmux issue. The same regression occurs with tmux on both macOS (Terminal.app and iTerm2, macvim-9.0.1276) and Linux (foot, vim-9.0.1321)

You can check if Fixkey_setup() is being called via :echo g:Fixkey_termType.

g:Fixkey_termType is undefined in tmux, defined otherwise.

You can adjust the time delay in your ~/.vimrc via let g:Fixkey_setupDelay = 10 (or other values). The default is now 400.

Setting g:Fixkey_setupDelay = 10 doesn’t affect the outcome.

drmikehenry commented 1 year ago

Thanks for the additional details. It turns out that the TermResponse autocmd is not sent for all terminals (notably not for tmux, PuTTY, and Linux console). I've released version 0.3.15 which uses the VimEnter autocmd as a fallback to ensure that Fixkey setup runs in all cases.

atweiden commented 1 year ago

Tyvm.