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