博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu系统里vi编辑器时,按方向箭头输入是乱码的ABCD字母?(图文详解)
阅读量:5908 次
发布时间:2019-06-19

本文共 3921 字,大约阅读时间需要 13 分钟。

 

 

  不多说,直接上干货!

 

 

 

 

 

问题详情

   ubuntu系统里vi编辑器时,按方向箭头输入是乱码的ABCD字母?

 

 

 

 

 

 解决办法

     是由于预装的vim软件没更新,运行

     sudo apt-get install vim
     安装最新的即可解决!

spark@slave1:~$ sudo apt-get install vim Reading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following additional packages will be installed:  vim-common vim-runtime vim-tinySuggested packages:  ctags vim-doc vim-scripts vim-gnome-py2 | vim-gtk-py2 | vim-gtk3-py2  | vim-athena-py2 | vim-nox-py2 indentThe following NEW packages will be installed:  vim vim-runtimeThe following packages will be upgraded:  vim-common vim-tiny2 upgraded, 2 newly installed, 0 to remove and 406 not upgraded.Need to get 6,748 kB of archives.After this operation, 30.0 MB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim-tiny amd64 2:7.4.1689-3ubuntu1.2 [445 kB]Get:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim-common amd64 2:7.4.1689-3ubuntu1.2 [103 kB]Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim-runtime all 2:7.4.1689-3ubuntu1.2 [5,164 kB]Get:4 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 vim amd64 2:7.4.1689-3ubuntu1.2 [1,036 kB]Fetched 6,748 kB in 17s (384 kB/s)                                             (Reading database ... 179064 files and directories currently installed.)Preparing to unpack .../vim-tiny_2%3a7.4.1689-3ubuntu1.2_amd64.deb ...Unpacking vim-tiny (2:7.4.1689-3ubuntu1.2) over (2:7.4.1689-3ubuntu1.1) ...Preparing to unpack .../vim-common_2%3a7.4.1689-3ubuntu1.2_amd64.deb ...Unpacking vim-common (2:7.4.1689-3ubuntu1.2) over (2:7.4.1689-3ubuntu1.1) ...Selecting previously unselected package vim-runtime.Preparing to unpack .../vim-runtime_2%3a7.4.1689-3ubuntu1.2_all.deb ...Adding 'diversion of /usr/share/vim/vim74/doc/help.txt to /usr/share/vim/vim74/doc/help.txt.vim-tiny by vim-runtime'Adding 'diversion of /usr/share/vim/vim74/doc/tags to /usr/share/vim/vim74/doc/tags.vim-tiny by vim-runtime'Unpacking vim-runtime (2:7.4.1689-3ubuntu1.2) ...Selecting previously unselected package vim.Preparing to unpack .../vim_2%3a7.4.1689-3ubuntu1.2_amd64.deb ...Unpacking vim (2:7.4.1689-3ubuntu1.2) ...Processing triggers for man-db (2.7.5-1) ...Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...Rebuilding /usr/share/applications/bamf-2.index...Processing triggers for mime-support (3.59ubuntu1) ...Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...Setting up vim-common (2:7.4.1689-3ubuntu1.2) ...Setting up vim-tiny (2:7.4.1689-3ubuntu1.2) ...Setting up vim-runtime (2:7.4.1689-3ubuntu1.2) ...Setting up vim (2:7.4.1689-3ubuntu1.2) ...update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto modeupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto modeupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto modeupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto modeupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto modeupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto modeupdate-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto modespark@slave1:~$

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

欢迎大家,加入我的微信公众号:大数据躺过的坑        人工智能躺过的坑
 
 
 

同时,大家可以关注我的个人博客

   http://www.cnblogs.com/zlslch/   和     http://www.cnblogs.com/lchzls/      http://www.cnblogs.com/sunnyDream/   

   详情请见:http://www.cnblogs.com/zlslch/p/7473861.html

 

  人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。

  目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

 

      对应本平台的讨论和答疑QQ群:大数据和人工智能躺过的坑(总群)(161156071) 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的文章
驰骋工作流引擎设计系列12 工作质量考核设计
查看>>
JAVA环境变量设置-windows--Linux
查看>>
XCode使用小记与代码管理
查看>>
spring同时集成mybatis和ibatis
查看>>
kafka 监控之Mx4jLoader
查看>>
wireshark windows 编译
查看>>
XBImageFilters
查看>>
chpter11~函数和函数式编程
查看>>
Hadoop之HDFS的常用命令
查看>>
分布式系统架构解决方案之Dubbo(三)--Dubbo管理端 和 Dubbo综合案例
查看>>
The function getUserId must be used with...解决办法
查看>>
懂得保持平衡的程序员
查看>>
Class yii\base\View
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
使用Unirest发送Json的格式数据
查看>>
亚洲诚信&华为云 | 双11钜惠提前来袭,错过等一年!
查看>>
目前所学的关键字整理
查看>>
我的友情链接
查看>>
Eclipse常用配置
查看>>