ctrl buggy on vim #849

Closed
opened 5 months ago by zeioth · 5 comments
zeioth commented 5 months ago

HOW TO REPRODUCE

  • On vimrc, add: imap
  • Open vim and press ctrl+backspace. It works.
  • press ctrl+any other button
  • Try ctrl+backspace again. It won't work.

This issue doesn't happen on alacritty. Any idea why?

Manjaro-sway,packages foot and foot-git.

# HOW TO REPRODUCE * On vimrc, add: imap <c-bs> <c-w> * Open vim and press ctrl+backspace. It works. * press ctrl+any other button * Try ctrl+backspace again. It won't work. This issue doesn't happen on alacritty. Any idea why? Manjaro-sway,packages foot and foot-git.
Owner

Yes, known vim issue: https://github.com/vim/vim/issues/9014

You can work around it by setting t_TI and t_TE in your vimrc.

let &t_TI = "^[[>4;2m"
let &t_TE = "^[[>4m"

(^[ is a literal ESC - make sure that's what you enter. I.e. do not just copy paste the above).

Yes, known vim issue: https://github.com/vim/vim/issues/9014 You can work around it by setting `t_TI` and `t_TE` in your vimrc. ``` let &t_TI = "^[[>4;2m" let &t_TE = "^[[>4m" ``` (`^[` is a literal ESC - make sure that's what you enter. I.e. do **not** just copy paste the above).
Owner

This should be copy-pastable:

let &t_TI = "\<Esc>[>4;2m"
let &t_TE = "\<Esc>[>4m"

edit: corrected t_TI, to 4;2, not 4;1 (previous post was correct)

This _should_ be copy-pastable: ``` let &t_TI = "\<Esc>[>4;2m" let &t_TE = "\<Esc>[>4m" ``` **edit**: corrected `t_TI`, to 4;2, not 4;1 (previous post was correct)
Poster

Thank you so much. Right on the money, that worked.
No way I could have solved this one by myself.

Again, thank you so much.

Thank you so much. Right on the money, that worked. No way I could have solved this one by myself. Again, thank you so much.
Owner

No problem :)

I should add this to the wiki.

It's just that I thought the vim devs would finish https://github.com/vim/vim/issues/9014 pretty quickly. But doesn't look like it's going to happen anytime soon. So, a wiki entry it is!

No problem :) I should add this to the wiki. It's just that I thought the vim devs would finish https://github.com/vim/vim/issues/9014 pretty quickly. But doesn't look like it's going to happen anytime soon. So, a wiki entry it is!
dnkl added the
not-a-bug
label 5 months ago
dnkl closed this issue 5 months ago
Owner
> I should add this to the wiki. https://codeberg.org/dnkl/foot/wiki#user-content-ctrl-key-breaks-input-in-vim
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.