I normally use Ctrl+PageUp and Ctrl+PageDown to switch tabs in Vim. But when running Vim inside GNU screen, they don't switch tabs and instead have the effect of switching case.
I am running the following bindings in my
bindkey "^[[1;5D" prev bindkey "^[[1;5C" next
These allow me to move between
screen tabs with Ctrl+← and Ctrl+→.
But disabling those bindings doesn't solve my problem so I don't think they are the culprit.
I am assuming there is some interaction between my terminal emulator, screen, and Vim that I don't understand.
Edit: I have found via this answer that starting vim with the
TERM environment variable set (overridden) to
xterm is a viable workaround, like this:
But I think the question still stands as I want to know why this is necessary.