How does VIM use substitution mode to modify characters?


In VIM, beginners usually modify characters by deleting them and inserting them, which is a bit troublesome. In fact, it is more convenient to use VIM replacement method to modify characters. Let’s take a look at the detailed tutorial below.

Software name:
GVIM text editor (enhanced version of VI editor for Windows) v8.0.69 official installation version of multi languages
Software size:

1. Open VIM editor

2. Input a line of number 1 as the experiment text

3. Press the R key in lowercase to enter 2, and replace the character after the cursor with 2,It can only be replaced once.

4, pressUppercase RKey, you can enter 2 until you pressEsc key

5. In replacement modePress ESC to return to visual mode.

The above is a tutorial for VIM to modify characters using replacement mode. I hope you like it. Please continue to pay attention to developpaer.

Relevant recommendations:

How to use VIM three modes? Introduction to VIM editor three modes