Nerd Commenter 使用

The Redefine Team Lv5

nerd commenter 是一个在vim中注释代码的插件。
有如下用法:

1.ca,在可选的注释方式之间切换,比如C/C++ 的块注释/* */和行注释//
2.cc,注释当前行
3.c,切换注释/非注释状态
4.cs,以”性感”的方式注释
5.cA,在当前行尾添加注释符,并进入Insert模式
6.cu,取消注释
7.Normal模式下,几乎所有命令前面都可以指定行数
8.Visual模式下执行命令,会对选中的特定区块进行注释/反注释

更多使用方法 :h NERDCommenter。

  • 标题: Nerd Commenter 使用
  • 作者: The Redefine Team
  • 创建于 : 2012-06-10 07:06:00
  • 更新于 : 2023-05-23 18:52:03
  • 链接: https://redefine.ohevan.com/2012/06/10/nerdcommenter/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
目录
Nerd Commenter 使用