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",说明进入了输入模式。

相关推荐
.YM.Z1 小时前
【Linux】进程管理|调度、上下文切换与虚拟地址空间
linux·进程
无足鸟ICT3 小时前
【RHCA+】_proc_pid_task_
linux·运维·服务器
女神下凡4 小时前
芯参谋(131):山景(MVsilicon)_开发指南
linux·arm开发·stm32·单片机·嵌入式硬件
地平线开发者4 小时前
查帧率、看负载、开日志:hrut_camsys 的 J6X Camsys 调试日常
linux·自动驾驶
星恒随风5 小时前
从0实现C++ AI大模型接入SDK(五):DeepSeekProvider的实现——策略模式、HTTP请求与SSE流式响应
linux·开发语言·c++·人工智能
weixin_404679315 小时前
cc 在 linux 安装
linux·运维·服务器
云上工程笔记6 小时前
大模型平台私有化部署怎么选?2026年合规要求、运维难度与架构成本评测
运维·架构
小宋10217 小时前
embedding 返回全零向量,索引却照收不误:入库前的向量健康门禁、隔离重算与召回恢复判据
linux·服务器·网络·人工智能
vivo互联网技术7 小时前
春节流量洪峰下的运维组织战:SRE 团队的春节保障实录
运维·运维开发·sre·组织协同