vi 多行注释和取消注释

注释

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

 

取消注释

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

posted @ 2019-01-31 10:55  持&恒  阅读(1804)  评论(0编辑  收藏  举报