vi 批量加注释与替换

在10 - 20行删除 # 注释

:10,20s/^/#/g

全文替换:
:%s/foo/bar/g

原文地址:https://www.cnblogs.com/zhugq02/p/14132490.html