Vim Tips

Install&Update

Install
Update

Plugins

Vundle(plugin manager)

YouCompleteMe

Tips

Keep your cursor centered vertically on the screen

zz

comment/uncomment lines in Vim

感觉第二个答案好些,如下
Comment

(在要注释的第一行前面)Ctrl+V(进入VISUAL BLOCK模式)
方向键一直下拉到最后一行
Shift+i(进入INSERT模式),然后输入#(Python的注释)
Esc

Uncomment

Put your cursor on the first # character, press CtrlV (or CtrlQ for gVim), and go down until the last commented line and press x, that will delete all the # characters vertically.

Delete all

dG[光标放在第一行]

Cut&Copy multi lines

V
Select all the lines
d(or y to copy)
p(on somewhere to insert)

本文标题:Vim Tips

文章作者:不秩稚童

发布时间:2018年03月08日 - 13:03:39

最后更新:2018年03月11日 - 00:01:24

原始链接:http://datahonor.com/2018/03/08/Vim-Tips/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。

击蒙御寇