The problem of entering a, B, C, D when you press the left or right key under Vim in Ubuntu

Source: Internet
Author: User

Ubuntu under the use of VI for editing files, pressing the next key around, will enter a, B, C, D, which is inconvenient to use. The reasons for this problem are:

Ubuntu system comes with VI incomplete result, solution: Install the Complete VI
$ sudo apt-get install VIM-GTK

If you do not install the update, or you can set the following:

In insert mode, ABCD occurs when you press the left and right arrows, as long as you enter:

: Set TERM=CONS25

However, this should be changed every time, but the following methods can be used to solve:

Create a. vimrc file in your home directory (if you don't have one)

In the inside write:

Set nocompatible

Note:

Reference

Http://vim.wikia.com/wiki/Fix_arrow_keys_that_display_A_B_C_D_on_remote_shell

http://blog.csdn.net/wklken/article/details/8044678

The problem of entering a, B, C, D when you press the left or right key under Vim in Ubuntu

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.