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

12,353

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.

Share:
12,353
Rahul Saxena
Author by

Rahul Saxena

Updated on June 05, 2022

Comments

  • Rahul Saxena
    Rahul Saxena almost 2 years

    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