Vim backspace cannot be used

Source: Internet
Author: User
Tags eol

Two steps:

1. Remove the annoying VI consistency mode to avoid bugs and limitations in earlier versions.
Set nocompatible

2. There are several ways to work with backspace. By default, backspace is VI compatible. This is not a habit for new users. People who are not so familiar with the old VI are also quite troubled. Available
Set backspace = indent, EOL, start
.
Indent: If you use automatic indentation such as: Set indent and: Set AI, you must set this option to delete the field indent with the return key. Otherwise, the system does not respond.
EOL: If you want to use the backspace key to merge two rows at the beginning of a row in insert mode, you need to set EOL.
Start: to delete the input before the insert operation, set this parameter.

 

Add the preceding two commands to the vim system configuration file. Run the vim command: ver to view the location of the system configuration file, usually in/etc/vimrc.

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.