Linux VI箭头键在插入模式下损坏 [英] Linux vi arrow keys broken in insert mode
本文介绍了Linux VI箭头键在插入模式下损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的箭头键在家里不能在vi的插入模式下工作,它们只能插入一个换行符和一个大写字母,例如'A'.有办法解决这个问题吗?
My arrow keys don't work in vi in insert mode at home, they just each insert a newline and a capital letter, like 'A'. Is there a way to fix that?
推荐答案
我假设您正在使用vim,因为它被标记为Linux.试试:
I presume you're using vim as this is tagged as Linux. Try:
:set nocompatible
(您可能希望通过向其添加.vimrc来配置此命令.如果主目录中尚不存在该文件,请创建一个新的.vimrc文件,运行echo $HOME
来检查主目录路径.)
(You may want to configure your .vimrc with this by adding this command to it. Create a new .vimrc file if not already present in your home directory, run echo $HOME
to check home directory path.)
这篇关于Linux VI箭头键在插入模式下损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文