Posted on 2019-09-06 09:40
宋鵬 閱讀(706)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
Linux
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 啟動(dòng)的時(shí)候,會(huì)運(yùn)行在兼容模式,此兼容模式是兼容old vi,所以會(huì)有這種情況。
此模式下,所有vi后來(lái)的改進(jìn)都是關(guān)閉的。