简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM