Vim Base operation

Source: Internet
Author: User

Vim can be divided into three modes, command mode, insert mode, visual mode.

First, the command mode

  At the beginning of the Vim design, the entire text editor is made with a keyboard rather than a mouse, and almost every key on the keyboard has a fixed usage. Vim creators want users to do most of the editing in the command mode, the mode is designed as the default mode, the beginner opens vim, if the input word directly, the result will drip noise, this is because vim the user input words understood as the command.

The biggest obstacle to a beginner's vim is in command mode. Cursor movement, copy and paste, find replace, exit save ..., each operation corresponds to a command in vim.

Second, insert mode

In the Insert mode, we can input, delete and modify the text content.

Once the cursor is positioned in the correct position in command mode, use the following command to enter into insert mode.

  i   在光标左侧插入正文
  a   在光标右侧插入正文
  o   在光标所在行的下一行增添新行
  O   在光标所在行的上一行增添新行
  I   在光标所在行的开头插入
  A   在光标所在行的末尾插入

Vim Base operation

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.