Ubuntu怎么解决vi编辑器按上下左右变成ABCD的问题?
<p>使用Ubuntu的vi编辑时,有时会遇到按上下左右键变成ABCD,介绍一下这种情况的解决方法。</p><p>1、如图,在使用vi编辑/etc/profile文件时,编辑状态下<strong>按上下左右键变成ABCD。</strong></p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/202007/2020072411355156.jpg" /></p>
<p>2、此时,先<strong>按Esc</strong>退出编辑状态,然后<span style="color: #ff0000"><strong>输入:q!退出文件编辑</strong>。</span></p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/202007/2020072411355157.jpg" /></p>
<p>3、会出现该问题的原因是原有的vim-common组件有问题,<strong>可以通过卸载原有的vim-common组件</strong>,安装新的vim来解决这个问题。</p>
<p>4、在退出文件编辑后使用命令</p>
<p><span style="color: #ff0000"><strong>sudo apt-get remove vim-common</strong></span></p>
<p>卸载原先的vim-common组件。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/202007/2020072411355258.jpg" /></p>
<p>5、卸载完成后使用命令</p>
<p><span style="color: #ff0000"><strong>sudo apt-get install vim</strong></span></p>
<p>安装vim。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/202007/2020072411355259.jpg" /></p>
<p>6、安装完成后再打开profile文件进行编辑,恢复正常。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/202007/2020072411355360.jpg" /></p>
<p>以上就是Ubuntu系统中vi按上下左右变成ABCD的解决办法,希望大家喜欢,请继续关注琼殿技术社区。</p>
<p><strong>相关推荐: </strong></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/683127.html">Ubuntu怎么修改系统默认音效? </a></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/729844.html">ubuntu20.04右键怎么添加创建链接文件快捷方式?</a></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/712905.html">Ubuntu系统的笔记本触摸板怎么调节鼠标光标速度?</a></p>
頁:
[1]