Posted on 2019-09-06 09:40
宋鵬 閱讀(690)
評論(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 啟動的時候,會運行在兼容模式,此兼容模式是兼容old vi,所以會有這種情況。
此模式下,所有vi后來的改進都是關閉的。