I’m having problems with certain keys on my numpad in vim when using tmux. They work outside of vim. It’s all the keys other than the numbers. The numbers work. (/ * - + . ENTER do not).
I am using rxvt-unicode-256color. When stating the terminal emulator, I have my TERM set to rxvt-unicode-256color. In tmux, the TERM is set to screen-256color.
The tmux version is 2.7 on the jump host I am using, but I installed a local copy of tmux 2.9a, and it made no difference.
If I set the TERM (in tmux) to rxvt-256color, the numpad keys work, but HOME and END stop working. I can fix that by setting the TERM to linux and then immediately back to rxvt-256color.
So the only way I have found to get all the keys working is to do this in my bashrc.
export TERM=linux
export TERM=rxvt-256color
Am I doing something wrong?
Thanks.