If you don't already have a .vimrc file in your home directory, create one using this:
vim ~/.vimrc Add this line to the top of the file:
set nocompatible Save the file and this should fix the problem for you. :)
解釋 何為兼容模式:
初裝linux,vi 啟動的時候,會運行在兼容模式,此兼容模式是兼容old vi,所以會有這種情況。
此模式下,所有vi后來的改進都是關閉的。


