Ubuntu vi using the arrow keys error how to solve?

  

vi is a full-screen text editor, the most basic text editor in Linux. In Ubuntu system operation, the arrow keys are wrong when editing vi, and the arrow keys cannot be used correctly. The following small series will introduce you. How to solve the Ubuntu vi arrow key use error.

resolution steps:

(a) Problem description:

vi not normally use the arrow keys

(two) Solution:

Problem Analysis: Ubuntu comes pre-installed with the vim tiny version, and the vim full version is required. Execute the following statement to install vim full version:

$sudo apt-get remove vim-common

$sudo apt-get install vim

ps: Here you may encounter the following Question:

Reading package lists. . Done

Building dependency tree

Reading state information. . Done

Package vim is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available From another source

E: Package vim has no installation candidate

Solution:

sudo apt-get update && sudo apt-get install vim

The above is the introduction of Ubuntu vi using the arrow keys to solve the problem. The main reason is that the pre-installed vim version of Ubuntu is wrong. You need to install the vim full version.

Copyright © Windows knowledge All Rights Reserved