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 ).