Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arrow keys not working in vi/vim in remote ubuntu terminal

I am trying to edit my python file in vi, but my arrow keys are not working.

 vim $HOME/.vimrc     -->   :set nocompatible

I tried arrow keys , Home, Delete and End keys in both vi and vim , but they are not working..

vi x.py

vim x.py

like image 310
Rahul Saxena Avatar asked Oct 31 '25 22:10

Rahul Saxena


1 Answers

Arrow keys are useful when in insert mode. It may be that your vim installation is not a full one per Linux vi arrow keys broken in insert mode in which case follow the instructions in the answer by Han.

like image 195
geru Avatar answered Nov 02 '25 13:11

geru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!