Today I will share with you how to find and replace vim.
For example, there is an article. Chinese and English are not limited. If you want to find the text or words in the notepad of the win system, press Ctrl + F to query them.
In vim, you can directly/query words. You can use this command to highlight all the remaining words in the document.
You only need to press n to perform the next
Press n to add
This is the search method.
--------------------------------------------
What should I do if I want to replace it after searching?
It is actually very simple.
For example, I want to convert "hello" in the document to "good ".
First, we first position the cursor to the first hello location, then press * to highlight all remaining Hello words, and then press CW to automatically Delete the first hello. Enter the content you want to replace. For example, enter "good" here and then "ESC" to exit. Then we press n to the next position and then just press.
Vim skills (2) search and replace