comment.vim


Ⅰ. 插件描述

Comment and uncomment selected blocks of code.

Ⅱ. 基本信息

创建日期:  2003-03-14
使用用户:  2
Github星:  1
插件作者:  Mike S

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/comment-vim-left-unsaid'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/comment-vim-left-unsaid'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/comment-vim-left-unsaid'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/comment.vim

Ⅳ. 文档说明

This script contains two simple functions to comment and uncomment visually selected blocks of C and C++ code using "#ifdef 0...#endif".   If'd out sections are commented with the author's name and a timestamp.

The default mappings are .c to comment and .C to uncomment.

e.x.

if 0 / author Tue Mar 25 19:08:09 EST 2003 /

...

endif / author Tue Mar 25 19:08:09 EST 2003 /

添加新评论