commentToggle


Ⅰ. 插件描述

A simple line-based comment toggler.

Ⅱ. 基本信息

创建日期:  2008-11-08
使用用户:  4
Github星:  1
插件作者:  kamil stachowski

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'kamwitsta/commenttoggle'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'kamwitsta/commenttoggle'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'kamwitsta/commenttoggle'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

commentToggle

Toggles comment for selected lines. If the selection is commented, commentToggle uncomments it; if it’s not commented, commetToggle comments it; if it’s mixed, the above is applied on a per-line basis. Very useful. I know, there are plenty of commenters out there, but this one’s mine. And it’s much simpler. One shortcut (<Leader>;) and that’s that.

添加新评论