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

相关推荐
chenmingfa1102 分钟前
yum安装软件报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?relea
linux·centos
dnpao13 分钟前
linux onlyoffice服务向docker容器中添加中文字体
linux·运维·docker
Linux技术芯23 分钟前
浅谈nvme驱动中的nvme_alloc_ns函数的实现原理和底层逻辑
linux
AOwhisky37 分钟前
Linux防火墙管理指南
linux·运维·服务器
礼拜天没时间.38 分钟前
Linux 系统规范配置:建立标准目录结构、 repo 源获取、修改终端变色
linux·服务器·centos·repo·终端变色
白玉瑕1 小时前
服务器存储基础
运维·服务器
liqb3651 小时前
RUN_TO_PARITY特性对调度延时的影响
linux
Ephemeral Memories1 小时前
ubuntu安装软件失败以及运行闪退
linux·ubuntu
网安CILLE1 小时前
PHP四大输出语句
linux·开发语言·python·web安全·网络安全·系统安全·php
ghostmen1 小时前
openEuler 安装 K3S
linux·k3s