Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHome and End keys not working in Tmux and TERM=screen-256color #8032
Comments
This comment has been minimized.
This comment has been minimized.
Does |
This comment has been minimized.
This comment has been minimized.
@mhinz |
This comment has been minimized.
This comment has been minimized.
The next release will automatically use a built-in terminfo entry if tmux is detected but Tmux used to use |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
@justinmk Oh, thank you! Sorry for the duplicate. I confirm that unibilium 2.0 fixes the issue (installed from the community-testing Arch repo) |
This comment has been minimized.
This comment has been minimized.
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?