Linux vi 箭头键在插入模式下损坏 [英] Linux vi arrow keys broken in insert mode

查看:15
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆