vim 全局替换

:%s/foo/bar/g

把全部foo替换为bar,全局替换
原文地址:https://www.cnblogs.com/pansidong/p/11024090.html