LINUX中使用VIM替换报错:pattern not found

源:http://blog.csdn.net/zhangfn2011/article/details/8508315
评:
在VIM中使用替换命令:



:s/rac1/szserver_72/g



报错:pattern not found  ,但rac1实际是存在的



可以这样处理即可:(即将s改为%s,g改为ge)



:%s/rac1/szserver_72/ge

猜你喜欢

转载自mauersu.iteye.com/blog/2405101