码迷,mamicode.com
首页 > 系统相关 > 详细

vim 指定几行的注释

时间:2019-09-10 14:49:26      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:nbsp   tps   vim   href   bsp   指定   删除   art   注释   

在2~50行首添加//号注释

:2,50 s/^/#/g

 

在2~50行首删除//号

:2,50 s/^#//g

 

参考来源:

https://www.cnblogs.com/Dennis-mi/articles/5939635.html

vim 指定几行的注释

标签:nbsp   tps   vim   href   bsp   指定   删除   art   注释   

原文地址:https://www.cnblogs.com/bio-mary/p/11497330.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!