开机进入安全模式或叫恢复模式(双系统开机进入第2项(单系统开机时按shift键)-选择root或drop to root shell promot-点击ok)
# mount -o remount / (以读写的权限重新挂载系统)
# vi /etc/vim/vimrc.tiny
:set nocompatible
:set backspace=2
按a或i进入编辑模式
set nocompatible (原为set compatible)
set backspace=2
按esc键退出编译模式
:wq (保存并退出)
# vi /etc/default/grub
按a或i进入编辑模式
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset" (原为"quiet splash")
按esc键退出编译模式
:wq (保存并退出)
# update-grub
# init 6 (重启电脑)
转载于:https://blog.51cto.com/kmt1994/1830233