ubuntu重新安裝vi編輯器的方法:
1.輸入以下命令將vi編輯器卸載。
sudo apt-get remove vim-common
2.再輸入以下命令重新安裝vi編輯器即可。
sudo apt-get install vim