1 打开终端,输入以下命令
sudo gedit /etc/vim/vimrc.tiny
2 进入文件后,修改 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:文章来源:https://www.toymoban.com/news/detail-660924.html
3 保存退出。进入vi编辑器,按i,即可看到“Insert”,说明进入了输入模式。文章来源地址https://www.toymoban.com/news/detail-660924.html
到了这里,关于Ubuntu vi 左下角没有提示的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!