This question already has an answer here:

I am open a file in vi:

vi index.php

Here the problem is: when I press the down arrow and it prints 'B'. Why it prints 'B'?

merged by jokerdino Mar 19 '16 at 11:47

This question was merged with Hitting arrow keys adds characters in vi editor because it is an exact duplicate of that question.

Browse other questions tagged or ask your own question.