The first part of the tutorial taken from vimtutor is small. 1. You can use an arrow or an hjkl letter to move the cursor in the screen text. H (left shift) j (downstream) k (upstream) l (right shift) 2. to enter the vim drivers (from the command line prompt), enter the: vim file name <return> 3. to exit the vim compiler, run the following command to modify all the changes: <ESC>: q! <Return> or press the following command to save all changes: <ESC>: wq <return> 4. in normal mode, to remove the characters in the position of the optical mark, press: x 5. in normal mode, you must insert text at the position of the optical mark, please press the <ESC> note in the necessary text: <ESC> press <ESC> to bring you back to normal mode or cancel a command that is not expected or partially completed. Now, the first step is here. Next we will introduce the content of the second release. The second limit is small. to delete a single word or word from the previous optical mark, enter: dw 2. to remove the cursor from the cursor to the end of the cursor, enter: d $3. to divide the entire line, enter: dd 4. in normal mode, the format of a command is: [number] command object or command [number] object. The meaning is: number-indicates the number of times that the command line is executed., for example, d represents the object to be deleted, for example, w represents a single word/Word, and $ represents the end of the row. $ (To the end of line), etc. 5. to cancel the previous operation, please submit it to: u (the u of the small Queue) to cancel the change in a row, please submit it to: U (the U of the large Queue) to undo the previous undo command, restore the results of previous operations, please enter: CTRL-R third-party small result 1. to re-place the deleted text content, enter the small letter p. This operation can place the excluded text content after the optical mark. If the last Division is an entire row, the row is set to the next row of the cursor. 2. If you want to replace the character at the position of the primary indicator, enter the r of the primary indicator and the new character to replace the original character. (Uppercase R can replace more characters consecutively) 3. Changing a class command allows you to change the specified object from the position of the cursor to the end of the object. For example, cw can be used as the content from the front indicator to the end of the word. c $ can be used as the front indicator to the end of the line. 4. the format of changing a command is: [number] c object or c [number] object fourth limit. ctrl-g is used to indicate the position of the front indicator and the File marker information. Shift-G is used to jump the cursor to the last line of the file. First, type a line, and then press Shift-G to move the cursor to the line. 2. After loading/writing a character string, it is used to search for the character string backward in the previous article. Login input question? Then, a character string is used to search for the character string forward in the previous article. After a search is completed, the last command is retained according to n. You can find the next string in the same direction; or Shift-N to find the string in the opposite direction. 3. If the cursor is in the front position of the cursor (,), [,], {,}, the cursor can be moved to the cursor of the matched cursor by %. 4. replace the old character string with the new character string "new" in one line. Please replace "s/old/new" with the new character string "old" in one line, please refer to: s/old/new/g in the two lines, replace all strings old as the new string new, please refer :#, # s/old/new/g (# indicates the row number) in the file, replace all strings old with the new string new. Please refer: when % s/old/new/g completes full text replacement, the following code is used to confirm each replacement: % s/old/new/gc