In vim, when using map commands you must specify keys. For example <CR> <ESC> <F1>. What are the corresponding ones for the arrow keys?
In vim, when using map commands you must specify keys. For example <CR> <ESC>
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t know the internal code for a certain key, type
CtrlK and then the function key. For example, this
sequence followed by the up arrow key will output:
You can learn more about this command in the documentation for both insert
and command mode. The specific ways to map a special key are given in the
documentation with the tag
:map-special-keys. Additionally, you can find ahandy table with
:h key-notation.