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