Linux notes (4) when using the VI Editor in Ubuntu, you cannot use the BACKSPACE key to backspace or not function properly.

Source: Internet
Author: User
Tags delete key

Excerpt from: http://blog.csdn.net/xiaojun111111/article/details/50810439

http://hongzhguan.iteye.com/blog/1479563

Just put the Ubuntu system reinstall on the virtual machine, and then try VI Editor, found that using VI, can not use the BACKSPACE key to BACKSPACE, backspace key press down to become ABCD, delete key is invalid.

Workaround:

Programme one:

The vim full version can be installed, the keyboard is normal under the full version, and the VI command is also used after installation.

Install Vim:

Ubuntu is preinstalled with the Vim tiny version, and requires a vim full version. Execute the following statement to install the VIM full version:

$sudo Apt-get Remove Vim-common

$sudo apt-get Install vim

This will do, Vim is an excellent software, can be realized in the application. (I use the 2nd command above, and then enter "Y", the system will be installed automatically.) Run successfully! )

Scenario Two:

Using the command ": Set nocompatible" on the VI command line is to set VI not to use compatibility mode.

Linux notes (4) when using the VI Editor in Ubuntu, you cannot use the BACKSPACE key to backspace or not function properly.

Related Article

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.