vim多行注释/删除注释

Posted by bower on January 15, 2010
linux/ubuntu

rencontre pour celibataire ado 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

按键操作:

source 注释:ctrl+v 进入列编辑模式,向下或向上移动光标,把需要注释的行的开头标记起来,然后按大写的I,再插入注释符,比如”//”,再按Esc,就会全部注释了。

删除:先按v,进入visual模式,横向选中列的个数(如”/ /”注释符号,需要选中两列),再按Esc,再按ctrl+v 进入列编辑模式,向下或向上移动光标,选中注释部分,然后按d, 就会删除注释符号。

使用替换命令:

go :%s/^/\/\//g来在全部内容的行首添加//号注释
:2,50s/^/\/\//g在2~50行首添加//号注释
反过来替换既是删除操作。

rencontres gratuites seniors picardie http://thenovello.com/alfondie/elkos/3898 分享到:人人网开心网腾讯微博新浪微博豆瓣分享腾讯空间百度搜藏腾讯书签

rfi rencontres de folklore internationales fribourg suisse 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

1 Comment to vim多行注释/删除注释

Leave a Reply

go to link Your email address will not be published. Required fields are marked *

http://nkbosna.ba/?myravey=site-une-rencontre-avis&201=2e

follow link

dating in patna

rencontre femmes musulmanes en france

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word