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

vim 插件使用随笔(2)

时间:2015-06-19 16:37:59      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

Plugin 8th: tpope/vim-commentary

Help me comment a code, I tested it support C++,vim. so it will support a lot of lang.

How to use:

Use gcc to comment out a line (takes a count),

gc to comment out the target of a motion (for example, gcap to comment out a paragraph), gc in visual mode to comment out the selection, and gc in operator pending mode to target a comment.

You can also use it as a command, either with a range like :7,17Commentary, or as part of a :global invocation like with :g/TODO/Commentary. That‘s it.

vim 插件使用随笔(2)

标签:

原文地址:http://www.cnblogs.com/zzuse/p/4588738.html

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