Using VIM to replace the error in LINUX: pattern not found

Source: http://blog.csdn.net/zhangfn2011/article/details/8508315
Comment:
Use the replacement command in VIM:



:s/rac1/szserver_72/g



Error: pattern not found, but rac1 actually exists,



you can do this Just deal with it: (namely change s to %s and g to ge)



: %s/rac1/szserver_72/ge

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326305729&siteId=291194637