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.