There are several modes of VIM:

Source: Internet
Author: User

Unlike most other editors, when you enter Vim, the characters you type in the default state are not inserted into the file you are editing. The concept of Vim (mode, which can simply be understood as "state") is very important. You need to know that Vim has the following modes:1)Normal mode, the default editing mode, the following without special instructions, the mentioned commands are directly entered in normal mode, any other mode can be returned to normal mode by the ESC key on the keyboard.2)Command mode for longer, more complex commands, enter ":" In normal mode (General command), "/" (forward lookup), or "?" (Reverse lookup) to enter the mode, command mode commands to enter the return (enter) is not complete.3)Insert mode, use when entering text, type "I" (insert) or "a" (append) in normal mode to enter insert mode (some other commands, such as "C", can also go into insert mode, but these commands have other effects).4)Visual (visual) mode for selecting text blocks, you can enter "V" in normal mode (lowercase) to select by character, enter "V" (uppercase) to select by row, or enter "Ctrl-v" to select by a square.5)Select (select) mode, which is closer to the normal Windows editor to select a block of text, and after selecting a block of text in one of the visual and selection modes, you can use "ctrl-g" to switch to another mode-the pattern is rarely used on Linux and is no longer covered in this article.

There are several modes of VIM:

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.