"Linux" Ubuntu system VI editor Direction key output letter problem

Source: Internet
Author: User

My machine is windows7/ubuntu14.04 dual system, a few days ago the hands of the windows of the Disk Management, I do not know how to use Ubuntu hard disk to format, so it must be re-loaded again, because the toss too many times, so the reload is also considered pro, But every time there will be an annoying problem, open VI Editor in the input mode when editing files will inevitably use the direction key, but this time will be printed out letters, and can not continue to edit, every time the reload will encounter this problem, simply write a blog record the solution, You don't have to take the time to find a solution.


First of all, the cause of this problem, we install Ubuntu14.04 (debian< read---------------------------------------- Vim is a more powerful version of VI, the function is also more rich, such as the code can be added syntax highlighting, multilevel revocation and VI compatibility and so on. But VI uses H J K L to move the cursor, and we are familiar with the operation of the command under VIM, so this is the problem.


Now that you know where the problem is, you should know how to solve it!!! We only need to uninstall the own VI, and then install Vim. Since Ubuntu has a command artifact apt-getto install the software, this process can be done in minutes. Just follow these two steps to make it OK:


1. Uninstall Vi:sudo apt-get Remove Vim-common


2. Install the full version of the Vim:sudo apt-get install vim


After that, wait for the file to be downloaded, it will be installed automatically, and then it can be used.

If you feel that knocking on vim is more troublesome or unaccustomed than knocking over VI, you can use the alias command to set the name of Vim to VI and the command format as follows:

Alias vi= "Vim"

This allows you to enter VI under the shell and automatically enters the Vim editor.

"Linux" Ubuntu system VI editor Direction key output letter problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.