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.

link|improve this question

74% accept rate
feedback

1 Answer

up vote 4 down vote accepted

\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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.