-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home and End keys not working in Tmux and TERM=screen-256color #8032
Comments
Does |
@mhinz |
The next release will automatically use a built-in terminfo entry if tmux is detected but Tmux used to use |
|
@justinmk Oh, thank you! Sorry for the duplicate. I confirm that unibilium 2.0 fixes the issue (installed from the community-testing Arch repo) |
Hm, the autodetection seems kind of broken in GNU screen: nvim: 0.4.2 .screenrc: Outside screen: Inside screen:
Shows:
With the wrong (xterm) codes for key_home and key_end. Why does nvim think it knows better than my (correct)
So... I can hack around this with Edit: and even when it correctly infers builtin_screen, Home/End keys are still broken. Ugh.
So everything seems to line up, but nvim still isn't handling home/end correctly? Edit2: Ah, FreeBSD is still on the dead mauke unibilium fork. I have filed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242560 . Hopefully that addresses the issue I'm seeing. |
nvim --version
: v0.2.2$TERM
:screen-256color
Steps to reproduce using
nvim -u NORC
Actual behaviour
<HOME>
(and<END>
) doesn't put the cursor to the beginning of the line while<CTRL>+<HOME>
works fine (moves the cursor to the beginning of the file).Expected behaviour
<HOME>
should put the cursor to the beginning of the line.Extra notes
I have read the related issues (#4308 and #6014) and FAQ on this matter, but given that I already have
TERM=screen-256color
, they didn't help.In the same session, vim works as expected.
I have tried setting
TERM
toxterm-256color
,xterm
, andscreen
and it turned out thatscreen
value fixes the issue with<HOME>
/<END>
buttons, but it doesn't seem correct to me, so I decided to report it.I want to also note that everything used to work just fine up until a few days ago, and I haven't touched any configs and I don't recall updates either to neovim nor tmux, but the fact that everything but neovim works just fine forced me to write this issue just in case if I am not alone.
Any idea on how I can inspect the issue?
The text was updated successfully, but these errors were encountered: