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

相关推荐
飞奔的瓜牛21 分钟前
Nginx + HAProxy 实现 TCP 代理:架构设计与实战配置
运维·tcp/ip·nginx
蝶依斓(湖南)全案整装29 分钟前
整装企业内容中的施工进度表述:节点、周期、反馈机制怎么写
运维
xixiaoyunya39 分钟前
FTP 文件备份的替代思路:用点对点自动化工具降低部署和维护成本
运维·备份
老一岁1 小时前
Redis事务_锁_持久化_主从哨兵
linux·数据库·redis
梓沂1 小时前
零成本替代 FTP:Ubuntu 24.04 搭建 Samba 共享,实现“一人可写,多人只读”
linux·运维·ubuntu
EmbeddedChen1 小时前
Linux 定时任务怎么设置?用 cron 自动执行脚本
linux·crontab·cron
IT小小猪1 小时前
子进程闪黑窗:pythonw 没有控制台,0x08000000 一个参数解决
运维·windows·python·自动化·进程管理
wuminyu2 小时前
OpenJDK学习笔记:Native事件队列与Java回调背压
java·linux·c语言·jvm·c++
Techblog of HaoWANG2 小时前
具身智能机器人专题(4) Docker 实战
linux·运维·ubuntu·docker·容器·机器人·ollama
跨境猫小妹2 小时前
自动化点不到页面按钮,先查元素定位还是渲染时机
运维·自动化·跨境电商·营销策略