When running vim inside the Terminal in Ubuntu, I can use Ctrl + Page Up or Page Down to switch between the vim tabs. How do I set up this for Terminal.app or iTerm2 for Mac OS X? I have a Macbook Air (2011) so I don't have 'proper' Page Up and Page Down keys, if that matters.
I have tried to set up various escape codes, but so far nothing works.
EDIT: I don't have privs to answer my own question, but here is the answer:
ANSWER:
I found the correct escape sequences. In Terminal.app's keyboard settings,
set "control page up" to "send string to shell:", with this value: "\033[5;5~"
set "control page down" to "send string to shell:", with this value: "\033[6;5~"