Why vim keep printing strange characters when I hit non-characters key?
- Insert prints
[2~
- Delete prints
[3~
- Page Up prints
[5~
- Page Down prints
[6~
- Home prints
OH
- End prints
OF
- Arrow Up prints
OA
- Arrow Down prints
OB
- Arrow Right prints
OC
- Arrow Left prints
OD
How can I fix this?
TERM
environment variable? Do other terminal applications (less
,bash
, …) recognize the keys properly? Do the keys work in other terminal emulators? Do you have the same problem if you runvim -u /dev/null
?xterm
andlinux
onTERM
environment variable. Both have no effects. I`ve tried every possible value for set term inside vim too. It still has no any effects