2

Open terminal > preferences > keyboard

I have control cursor right as \005. I like it! When inside Vim, it moves the page down 1 line while keeping my cursor unmoved.

Try it.

My question is: how do I do the same with control cursor left? I want vim to move the page 1 line up, but keep cursor unmoved.

What is the "action" for it? I tried \004 and nothing worked.

1 Answer 1

4

\005 or \x05 is the equivalent of CtrlE in ASCII (see C0 control codes, which represent both a control character and a keypress). The opposite, in Vim, would be CtrlY, which is \031 in octal or \x19 in hex.

See also :help ^E, :help ^Y and :help :map in Vim.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .