1?打開終端,輸入以下命令
sudo?gedit /etc/vim/vimrc.tiny
?2?進(jìn)入文件后,修改?set compatible 為set nocompatible,如下所示:
" Vim configuration file, in effect when invoked as "vi". The aim of this
" configuration file is to provide a Vim environment as compatible with the
" original vi as possible. Note that ~/.vimrc configuration files as other
" configuration files in the runtimepath are still sourced.
" When Vim is invoked differently ("vim", "view", "evim", ...) this file is
" _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are." Debian system-wide default configuration Vim
set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim82,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/afterset nocompatible
" vim: set ft=vim:文章來源:http://www.zghlxwxcb.cn/news/detail-660924.html
?3?保存退出。進(jìn)入vi編輯器,按i,即可看到“Insert”,說明進(jìn)入了輸入模式。文章來源地址http://www.zghlxwxcb.cn/news/detail-660924.html
到了這里,關(guān)于Ubuntu vi 左下角沒有提示的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!