Ubuntu安装完成后vi编辑器键盘不能正常使用,使用下面方法解决:

编辑文件/etc/vim/vimrc.tiny,将“compatible”改成“nocompatible”非兼容模式;

并添加一句:

set backspace=2