F6_Comment (old)


Ⅰ. 插件描述

Auto commenting that accepts Visual range

Ⅱ. 基本信息

创建日期:  2007-10-03
使用用户:  1
Github星:  1
插件作者:  David Maclay

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

**
NB.  I accidentally uploaded this script twice, this instance needs to be deleted,
         and the copy listed under Vim 7.0 should be kept.
         I just don't know how to do this ... sorry.


Description:
I don't know for sure that something like this does not already exist in Vim, but if it does, I can't find it.

I recall Cream having this kind of functionallity mapped to <F6>,
so to maintain consistency I've kept the convention.

This uses the current value of &cms / &commentstring to comment and uncomment code.
It works for ranges selected in Visual mode, or for the current line in all modes.
NB. Comment strings may not include '@' or '+'
(I don't know of any languages that use these characters).

Help:
Use <F6> to comment, and <S-F6> to uncomment

添加新评论