When I use the arrow keys in vim in insert mode I get letters inserted instead of movement.
- Up produces an A
- Down produces a B
- Left products a D
- Right produces a C
Does anyone know what would cause this?
Thanks in advance
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 these keys work fine in normal mode, but do not in insert then you must have some mappings to the first one or two characters (normally
<Up>is either<Esc>[A(terminals that use CSI) or<Esc>OA(xterm)). Try checking out output of, there should be not much mappings starting with
<Esc>in insert mode (I have none, for example). I can say, that with arrow keys working normally in insert mode, usingproduces just the same behavior as if you had problems with terminal recognition or had ‘compatible’ set.