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

相关推荐
谷哥的小弟30 分钟前
CentOS Stream浴火重生
linux·运维·centos
程序员-Benothing1 小时前
Shell输入输出详解:read、echo、printf、颜色输出
linux·运维·服务器
和裕1 小时前
全纸结构重型纸箱能否满足 1 吨以上设备出口熏蒸豁免要求?通关合规性全解析
大数据·运维·网络·人工智能·算法
FPGA小徐2 小时前
从 NEMU 到 AbstractMachine:程序、运行时环境与 AM 完全解析
linux·运维·服务器
呉師傅3 小时前
得力P2500、M2500系列打印机硒鼓加粉及清零方法【纯享版】
运维·网络·windows·电脑
Sayai3 小时前
Elasticsearch 日志检索 DSL 实战:时间范围查询、字段去重、分钟级统计与最新日志获取
大数据·运维·elasticsearch·搜索引擎·日志分析
qetfw3 小时前
Debian Chrony 时间同步、RAID5 与 LUKS 磁盘加密配置
linux·debian
fb_123455 小时前
MySQL运维实战:备份恢复+主从复制+读写分离+MHA高可用(超详细手把手教程)
运维·mysql·oracle
东城居士5 小时前
Linux驱动阻塞与非阻塞访问的理解
linux·嵌入式系统
..Dauntless..6 小时前
【Linux】进程地址空间初步理解
linux·运维·服务器