Ⅰ. 插件描述
Vim global plugin for manipulating commentsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/ezcomment'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/ezcomment'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/ezcomment'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/EZComment
Ⅳ. 文档说明
EZComment is a Vim global plugin for manipulating comments
in code. It tries to both very flexible and very easy to
use. EZComment provides mappings for two general kinds of
tasks: inserting and editing text comments, and
commenting/uncommenting actual code.
Use and customization of EZComment is discussed in detail in
the provided help file. Here is the quick start information
(from the documentation):
Here are some -very- brief hints about the mappings to get
started quickly. The mappings try to remind you of standard
Vim commands, so just try them! If something is not
obvious, then check the documentation for details.
From normal mode:
to make new comments |gca|, |gci|, |gco|, |gcO|
to edit comments |gcA|, |gcC|
From visual mode, or from normal mode followed by {motion}:
to comment code |gcc|
to uncomment code |gcuc|
Please contact the author with comments, questions, or
suggestions!