i edit some file in ubuntu using vi,
using module "a" or "I"
weired thing happend
Backspace didn’t work, and "left","right","up","down" make no sense, instead as A B C D.
so i search for "ubuntu vi backspace A B C D" at google
there are plenty method ,i list them below
1. http://www.hkcode.com/linux-bsd-notes/443
vi 的方向鍵及 backspace 鍵在 Ubuntu 使用 vi 的 insert 模式時,按下方向鍵會出現 ABCD,而 backspace 鍵則不會刪除字符,解決方法是在 home directory 建立 .vimrc 檔案,並加入以下內容:
set nocompatibleset backspace=2
2.http://nathan-wu.javaeye.com/blog/135984
vim backspace or delete can not work fix problem!!!
try this:set nocompatibleset backspace=indent,eol,startset bs=2 << maybe need add thisthe problem show on cygwin with winxp and freebsd vim 7.1 at least i have that problem.
3.http://zhumeng8337797.blog.163.com/blog/static/1007689142010102534136242/
插入模式backspace不能用:vimrc加上 "set bs=2"set nocompatibleset backspace=indent,eol,startset bs=2
4.http://hi.baidu.com/sunyubo458/blog/item/33ae2ac285a5b63ce4dd3bab.html
http://topic.csdn.net/u/20090915/18/bd8ba168-f658-4354-b0f1-eebeed274f72.html (REASON&RECOMMAND!!)
Vim由7.1升级成7.2 以下是vim help中的原文:
所以解决的办法就是在vimrc文件中加入如下代码:
如果还不行的话,可能还需要
要注意ubuntu linux默认安装的是vim-tiny,这个版本有诸如BACKSPACE不能擦除的问题(that is, vim take vi configuration as default)。运行 sudo apt-get install vim解决问题。另外到www.linuxsir.org或者wiki.ubuntu.org.cn去接受一点基本知识有好处。!!!reference:http://blog.csdn.net/ablo_zhou/archive/2009/02/04/3860236.aspx
思念是对昨天悠长的沉淀和对未来美好的向往。