VIM Command Summary

Source: Internet
Author: User

@ three states:

Command: Any input will be used as an edit command and will not appear on the screen, and any input will immediately cause a reaction.

Insert: Any input data as for the edit register, press ESC to jump back to common mode.

Escape: With ': ' or '/' as the leading instruction, appears on the bottom line of the screen, any input is treated as a special instruction.

@ Leave Vim:

: q! Discard the edited content and leave Vim

: Wq save content and leave vim

: X with Wq (note--:x is file encryption, be sure to match with: X Save the exit)

@ Enter input mode

A (append) is added by the cursor after the content.

A by the end of the line to add content.

I (insert) is added by the cursor before the content.

I Add the content to the first entry.

O (open) adds a line below the line for input data.

O add a new line to the line for the input data.

@ Delete and modify

x Delete the character where the cursor is located

X Delete a character before the cursor is located

VIM Command Summary

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.