Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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