vim

https://wangzhengquan.github.io/vim/

I have integrate all the popular vim plugin in a shell script. You can install all of them with just one command as illustrated in Quick Install.

Quick Install:

Stick the follow command in you terminal:

wget -qO- https://wangzhengquan.github.io/vim/install.sh | bash

or

/bin/bash -c "$(curl -fsSL https://wangzhengquan.github.io/vim/install.sh)"

Screenshot

Usage

Plugins

,ca在可选的注释方式之间切换,比如C/C++ 的块注释/* */和行注释//  
,cc注释当前行  
,c<space> 切换注释/非注释状态  
,cs 以”性感”的方式注释  
,cA 在当前行尾添加注释符,并进入Insert模式  
,cu 取消注释  
,c$ 从光标开始到行尾注释  ,这个要说说因为c$也是从光标到行尾的快捷键,这个按过逗号(,)要快一点按c$  
2,cc 光标以下count行添加注释   
2,cu 光标以下count行取消注释  
2,cm:光标以下count行添加块注释(2,cm)  
Normal模式下,几乎所有命令前面都可以指定行数  
Visual模式下执行命令,会对选中的特定区块进行注释/反注释