Vim Practical Guide (5): Editing commands (delete, modify, copy, repeat) (2)-modify

1. Modify a single character-r command

         rx: will change the character where the cursor is to x

2. Modify multiple characters-nr command

        3rx: will change the cursor and the 2 characters after it to x

3. Modify a single word-c command

4. Modify to the end of the line-r$ command:

5. Modify to the beginning of the line-r^ command:

6. Modify-s command:

         This command will delete the character at the cursor and set vim to insert mode

7. Modify the entire line-S command:

      This command deletes all characters in the line where the cursor is (except for carriage return), and then sets vim to insert mode

 

 

Guess you like

Origin blog.csdn.net/lianshaohua/article/details/108750533