Ubuntu vi 左下角没有提示

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/after

set nocompatible

" vim: set ft=vim:

3 保存退出。进入vi编辑器,按i,即可看到"Insert",说明进入了输入模式。

相关推荐
chenyuhao20247 分钟前
Linux系统编程:线程概念与控制
linux·服务器·开发语言·c++·后端
cws20040121 分钟前
HeidiSQL 使用操作说明书
运维·数据库·windows·mysql·heidisql
Pyeako27 分钟前
MySQL基础知识&Linux导入导出数据
linux·数据库·mysql·sql查询·sql分类
prettyxian27 分钟前
【linux】进程概念(1)PCB、系统调用与 proc 目录全解析
linux·运维·服务器
霜雪i35 分钟前
Linux MD5
linux·服务器
乾元36 分钟前
用 AI 做联动:当应用层出现问题,网络如何被“自动拉入决策回路”
运维·开发语言·网络·人工智能·ci/cd·自动化
取加若则_37 分钟前
Vim基本操作
linux·编辑器·vim
youxiao_9041 分钟前
Docker 容器(一)
运维·docker·容器
小尧嵌入式1 小时前
Linux进程线程与进程间通信
linux·运维·服务器·c语言·开发语言·数据结构·microsoft
Arvin6271 小时前
docker /var/lib/docker/overlay2磁盘满的处理方法
运维·docker·容器