vi 多行注释和取消注释

注释

:1,10 s/^/#/   注释1到10行

取消注释

ctl+v 进入visual block模式 选中 #号 按d 或x 将其删除

原文地址:https://www.cnblogs.com/lfxiao/p/10341003.html