As in the following section of code
We are going to make the code more readable, and adding spaces before and after the + changes to the following:
Make the change repeatable
f+
Executes the find character command on the current line, the S command contains two actions, deletes the current character and becomes insert mode.
In the diagram we delete with the s
command +
, and then enter 空格+空格
, ESC exits insert mode into normal mode. A complete change was performed.
Make the motion repeatable
f+
Performs a lookup of a character after the current line cursor, ‘+‘
and moves the cursor to where the character appears, ;
repeating the last f
Lookup command, that is, moving the cursor to the next +
occurrence.
All Together Now
;
The command moves us to the next target, and the .
command executes the last change, grouped together.
[Practical.vim (2012.9)]. DREW.NEIL.TIP03 Study Summary