vim_comment_toggle


Ⅰ. 插件描述

Very simple Vim functions to toggle comments for some common file types

Ⅱ. 基本信息

创建日期:  2016-10-08
使用用户:  0
Github星:  1
插件作者:  A. G. Madi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim_comment_toggle
Very simple Vim functions to toggle comments for c, c++, Python, shell scripts, and Erlang files.

Just add the files or the functions to ~/.vim/ftplugin directory.
The keys mapped to toggle comments are [CTRL]_ (that's control + underscore) and can be changed easily.

Currently, only one comment type is supported at a time. If a different file type is loaded in the same Vim session, then a warning is given and the keys are not remapped. I'll be looking into making it smarter in the future as long as it stays simple.

Available on vim.org (http://www.vim.org/scripts/script.php?script_id=5458)

添加新评论