CaryStudio

 找回密码
 立即注册
搜索
查看: 1816|回复: 0

基于MT76...开发笔记5——解决Ubuntu vi 上下左右变ABCD问题

[复制链接]
发表于 2017-12-7 10:55:36 | 显示全部楼层 |阅读模式

请先登录

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
我用的Ubuntu12.4.2版本但是在使用的过程中发现vi编辑器中的上下左右四个按键会变成ABCD,这样使用起来不方便,当然你也可以重新安装一个VIM编辑工具,使用是没有问题的。
一、移除vim-common
  1. root@openwrt:~/MT7688# apt-get remove vim-common
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following packages will be REMOVED:
  6.   ubuntu-minimal vim-common vim-tiny
  7. 0 upgraded, 0 newly installed, 3 to remove and 524 not upgraded.
  8. After this operation, 1,154 kB disk space will be freed.
  9. Do you want to continue [Y/n]? Y
  10. (Reading database ... 149098 files and directories currently installed.)
  11. Removing ubuntu-minimal ...
  12. Removing vim-tiny ...
  13. update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode.
  14. Removing vim-common ...
  15. Processing triggers for man-db ...
复制代码
二、安装vim
  1. root@openwrt:~/MT7688# apt-get install vim
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following extra packages will be installed:
  6.   vim-common vim-runtime
  7. Suggested packages:
  8.   ctags vim-doc vim-scripts
  9. The following NEW packages will be installed:
  10.   vim vim-common vim-runtime
  11. 0 upgraded, 3 newly installed, 0 to remove and 524 not upgraded.
  12. Need to get 7,341 kB of archives.
  13. After this operation, 25.1 MB of additional disk space will be used.
  14. Do you want to continue [Y/n]? Y
  15. WARNING: The following packages cannot be authenticated!
  16.   vim-common vim-runtime vim
  17. Install these packages without verification [y/N]? Y
  18. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-common i386 2:7.3.429-2ubuntu2.1 [85.8 kB]
  19. Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-runtime all 2:7.3.429-2ubuntu2.1 [6,277 kB]
  20. Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim i386 2:7.3.429-2ubuntu2.1 [979 kB]
  21. Fetched 7,341 kB in 51s (144 kB/s)                                             
  22. Selecting previously unselected package vim-common.
  23. (Reading database ... 149043 files and directories currently installed.)
  24. Unpacking vim-common (from .../vim-common_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
  25. Selecting previously unselected package vim-runtime.
  26. Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.429-2ubuntu2.1_all.deb) ...
  27. Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
  28. Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
  29. Selecting previously unselected package vim.
  30. Unpacking vim (from .../vim_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
  31. Processing triggers for man-db ...
  32. Setting up vim-common (2:7.3.429-2ubuntu2.1) ...
  33. Setting up vim-runtime (2:7.3.429-2ubuntu2.1) ...
  34. Processing /usr/share/vim/addons/doc
  35. Setting up vim (2:7.3.429-2ubuntu2.1) ...
  36. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode.
  37. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode.
  38. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode.
  39. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode.
  40. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode.
  41. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode.
  42. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode.
  43. root@openwrt:~/MT7688#
复制代码
三、现在可以正常使用vi和vim工具了
root@openwrt:~/MT7688# vim Hello.c
root@openwrt:~/MT7688# vi Hello.c

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|CaryStudio ( 粤ICP备16022806号 )

GMT+8, 2023-6-8 10:44 , Processed in 0.088032 second(s), 12 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表