How does Linux vim use the replace function to batch replace one by one selection replacement

Project scenario:

Sometimes on the linux system, sometimes you need to use the replacement function, it is inconvenient to modify one by one, and there may be errors


solution

full text replacement

 :%s/源字符串/目的字符串/g

Select one by one to replace

 :%s/源字符串/目的字符串/gc

Guess you like

Origin blog.csdn.net/m0_67265464/article/details/126747585