首页 > 其他分享 >vi编辑器上下左右失效

vi编辑器上下左右失效

时间:2024-10-25 17:09:32浏览次数:7  
标签:vi universe multiverse 编辑器 ubuntu deb main 上下左右 restricted

在使用vi编辑器时,插入状态下,上下左右键失效变成ABCD。
系统为Ubuntu22.04.(建议先检查第五条apt源的问题)
解决方法:
1.尝试修复破损依赖(大概率解决不了)

sudo apt --fix-broken install

2.如果是报版本错误,尝试降级

sudo apt remove vim-common

安装系统提示的版本

sudo apt install vim-common=xxx vim

3.清理包管理器缓存
清除所有包缓存

sudo apt clean

仅删除过期不可用的软件包

sudo apt autoclean

4.重新安装

sudo apt update
sudo apt install vim

5.换源(如果还是不行,可能是镜像源出问题了)
备份:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

换源(vi不正常,先使用nano)

sudo nano /etc/apt/sources.list

将原来的源注释或者删除,添加新的源

  1. 阿里云镜像源
    Ubuntu 22.04 LTS (Jammy Jellyfish)
    deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    Ubuntu 20.04 LTS (Focal Fossa)
    arduino
    复制代码
    deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    Ubuntu 18.04 LTS (Bionic Beaver)
    arduino
    复制代码
    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  2. 清华大学镜像源
    Ubuntu 22.04 LTS (Jammy Jellyfish)
    arduino
    复制代码
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    Ubuntu 20.04 LTS (Focal Fossa)
    arduino
    复制代码
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
    Ubuntu 18.04 LTS (Bionic Beaver)
    arduino
    复制代码
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  3. 中科大镜像源
    Ubuntu 22.04 LTS (Jammy Jellyfish)
    arduino
    复制代码
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    Ubuntu 20.04 LTS (Focal Fossa)
    arduino
    复制代码
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
    Ubuntu 18.04 LTS (Bionic Beaver)
    arduino
    复制代码
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  4. 网易镜像源
    Ubuntu 22.04 LTS (Jammy Jellyfish)
    arduino
    复制代码
    deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
    Ubuntu 20.04 LTS (Focal Fossa)
    arduino
    复制代码
    deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
    Ubuntu 18.04 LTS (Bionic Beaver)
    arduino
    复制代码
    deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
  5. 官方 Ubuntu 镜像源
    如果你想使用 Ubuntu 官方的全球镜像,可以使用以下源:
    Ubuntu 22.04 LTS (Jammy Jellyfish)
    arduino
    复制代码
    deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
    Ubuntu 20.04 LTS (Focal Fossa)
    arduino
    复制代码
    deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

标签:vi,universe,multiverse,编辑器,ubuntu,deb,main,上下左右,restricted
From: https://www.cnblogs.com/moyudemao/p/18502945

相关文章

  • 论文阅读-Learning to Predict Visual Attributes in the Wild
    摘要视觉属性构成了场景中包含信息的大部分。物体可以使用多种属性来描述,这些属性展现了它们的视觉外观(颜色、纹理)、几何特征(形状、大小、姿态)以及其他内在属性(状态、动作)。现有工作大多局限于特定领域内的属性预测研究。在本文中,我们介绍了一个大规模的野外视觉属性预测数据集,......
  • CRLF、UTF-8这些编辑器右下角的选项的意思
    经常使用编辑器的小伙伴应该经常能看到右下角会有这么两个选项,下图是VScode中的示例,那么这两个到底是啥作用呢?目录字符编码ASCII字符集GBK字符集Unicode字符集UTF-8编码换行字符编码此部分参考博文在计算机中,所有数据都是以二进制数的形式存储的,字符char......
  • 如何保存并退出各大编辑器
    输入update-alternatives--listeditor查看当前系统下有什么编辑器。将list改为config(或display)可以看到输出的某一行是当前的默认编辑器。很可惜你并没有sudo权限将默认编辑器改为你最喜欢的。以下是NOILinux2.0下存在的部分编辑器:update-alternatives--confige......
  • vivo 轩辕文件系统:AI 计算平台存储性能优化实践
    在早期阶段,vivoAI计算平台使用GlusterFS作为底层存储基座。随着数据规模的扩大和多种业务场景的接入,开始出现性能、维护等问题。为此,vivo转而采用了自研的轩辕文件系统,该系统是基于JuiceFS开源版本开发的一款分布式文件存储方案。本文将介绍vivo轩辕文件系统在JuiceFS......
  • springboot:test类中的UserService无法自动装配,解决方案
    检查Service类遇到这种问题一般先检查你的Service是否有bean即有无用@Service注释,或者有无其他service的bean配置漏了在这里是已经有注释了那么可能就是spring启动的时候没有识别到我的bean检查启动文件在扫描路径中少了我的service包所在的路径packagecom.tutor......
  • 【北京迅为】itop-龙芯2k1000开发指南Linux基础入门vim 编辑器
     龙芯2K1000处理器集成2个64位GS264处理器核,主频1GHz,以及各种系统IO接口,集高性能与高配置于一身。支持4G模块、GPS模块、千兆以太网、16GB固态硬盘、双路UART、四路USB、WIFI蓝牙二合一模块、MiniPCIE等接口、双路CAN总线、RS485总线,扩展能力更强。龙芯2K1000已经广泛应用于工控......
  • IDEA 微服务,配置services菜单管理服务启动和调试
    打开工程下的workspace配置RunDashboard<componentname="RunDashboard"><optionname="configurationTypes"><set><optionvalue="SpringBootApplicationConfigurationType"/></set>......
  • 六个方向比较分析:ChatGPT-o1-preview与 ChatGPT-4o在论文写作辅助上的差异
    学境思源,一键生成论文初稿:AcademicIdeas-学境思源AI论文写作在学术研究和论文撰写的领域,人工智能助手正变得越来越重要。随着技术的不断进步,ChatGPT-o1-preview和ChatGPT-4o作为两个先进的语言模型,在辅助论文写作方面展现出了各自独特的优势和特点。本文将比较分析两个模......
  • Navicat 索引类型、索引方法使用
    选择索引类型(有四种)Normal(普通索引):普通索引是最常见的索引类型。它用于加速查询操作,提高查询性能。允许重复值,可以在一个字段上创建多个普通索引。Unique(唯一索引):唯一索引要求索引列的值是唯一的,不允许重复值。它用于保证数据的唯一性约束。唯一索引可以加速唯......
  • CF 981 Review
    CF981Review打的最差的一场Div.3虽然可能有Div.3是ICPC赛制的原因,但是本质上还是自己太菜了。A模拟Code#include<bits/stdc++.h>usingnamespacestd;template<typenameT>inlinevoidre(T&x){ x=0;intf=1;charc=getchar(); while(!isdigit(c)){if(c=='-')f=-1;......