Basic operations in vim mode and basic operations in vim Mode

Source: Internet
Author: User

Basic operations in vim mode and basic operations in vim Mode
Author: fengxueting Source: http://www.cnblogs.com/fengxueting-px/

Preface

Although Emacs can complete most editing operations, vim is sometimes used for convenience. Therefore, a simple vim operation is recorded. You only need to get started.

This document briefly records the conversion, copy, and paste operations between vim editor modes.

 

I. Mind Map

 

Note:

1. insert mode

Lowercase letters:

I start to input text before the character where the cursor is located and enter the insert mode

A starts to input text and enters the insert mode after the character where the cursor is located.

O (letter o) opens a new line under the row where the cursor is located to enter the text and enter the insert mode.

S. Delete the character of the cursor and enter the insert mode.

 

Uppercase letters:

I. Enter the text at the beginning of the row and enter the insert mode. This line indicates the first non-blank character. If there is a space at the beginning of the line, enter the text after the space and enter the insert mode.

A. Enter the text at the end of the row and enter the insert mode. This is easy to use. You don't have to worry about where the cursor is in this line. If you press A, you will be waiting for you to enter text at the end of the line.

O (uppercase letter O) opens a new line on the line where the cursor is located to enter the text and enter the insert mode.

S. Delete the row where the cursor is located and enter the insert mode.

2. Visual Mode

Lower-case v visual mode

Uppercase V visual Block Mode

 

Ii. Copy, cut, and paste

1. Select text blocks. Use v to enter the visual mode and move the selected content of the cursor key.

2. The copied command is y, that is, yank (mentioned)

3. The cut command is d, that is, delete,

4. paste the imperative p, that is, put (put down)

Note: When copying and pasting, another common group of commands is u (Undo operation ).

 

 

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.