7
7
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~"
Since I had to search for it: the
\033
part of the string needs be generated by Esc+[ . – Konrad – 2017-12-06T10:51:53.563Hi, I cant answer my own question it seems, but I found the escape sequences that made it work. Could you perhaps include them in your answer? Thanks (If you do I will accept it :) – ramn – 2011-08-14T13:29:08.707
The MBA simulates PageUp and PageDown with <function key> and ArrowUp / ArrowDown – ramn – 2011-08-14T13:30:03.370
OK, I've edited my answer. But I think you could POST an answer, don't you? – romainl – 2011-08-14T16:36:20.363
romainl: The privilege system didn't allow me to post an answer to my own question, I'm a new user here.
Thanks for your answer and help! – ramn – 2011-08-14T17:23:02.757