VI and VIM editor up and down into ABCD

Source: Internet
Author: User

VI and VIM editor up and down into ABCD

Problem

One time when using the VI and Vim Editor in Redhat with ordinary users, found in the VI and Vim Editor: in the command line mode can normally use the upper and lower keys, but in the non-command line mode can not normally use the upper and lower left and RIGHT arrow keys

"Online Solutions"

1) Add the following to the/ETC/VIM/VIMRC:

Set nocompatible//Support arrow keys

Set backspace=2//support BACKSAPCE Pre-delete button

2) input in the command line mode of VI and VIM: set nocompatible

"The last way to do it (not the best)"

Since it is currently a normal user, and there is no ~/.VIMRC this file, only each time you enter it on the command line:

Set nocompatible [sweat]


This article from the "12300166" blog, reproduced please contact the author!

VI and VIM editor up and down into ABCD

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.