vim: visual模式操作

visual mode

: help visual-mode

# 进入普通visual模式
v

# 进入行visual模式
shift+v

# 进入列visual模式
ctrl+v

# 重复上次visual模式下的选择
gv

# 移动光标到选择区域的另一端
o
O   //大写的o, 在Visual block mode下有用

一.多行注释的添加

1. vim的命令模式下(ESC 进入命令模式):
2. 按CTRL+V进入可视化模式(VISUAL BLOCK);
3. 移动光标,选中需要注释的多行 的开头;
4. 选择完毕后,按 shift+i 键,进入“insert”模式,输入你要插入的注释符#;
5. 按ESC键,注释多行成功;


二.多行注释的删除:

Ctrl+v 进入列选择模式,移动光标选中多行注释,按下d,删除成功。

三. 行尾添加内容:

在Visual Block模式下,可以统一在任何地方操作列,我们以行尾插入字符为例:

  1. 按 Ctrl + v 进入列选择模式,
  2. 再按G,选中全文的第一列
  3. 然后按下$,进入行尾块模式
  4. 按下 A,进入块插入状态,输入符号/
  5. 按下 ESC,杭为插入字符成功


《 “vim: visual模式操作” 》 有 4 条评论

  1. where can i buy generic cytotec online I m now in full blown panic mode and not sleeping because of the anxiety and worry this has caused me

  2. IL 2 dependent CTLL cells washed 4 times in phosphate buffered saline PBS to remove any remaining IL 2 in the growth medium were plated in 96 well plates at 10 4 per well in 50 ОјL fresh growth medium without IL 2 cost cheap cytotec tablets

  3. In the base case analysis it was assumed that the benefits of anastrozole would continue out to 10 years from initiation of treatment buy priligy dapoxetine online

  4. Novel adeno associated viruses from rhesus monkeys as vectors for human gene therapy, PNAS, 11854 11859, Sep priligy equivalent The integrity and concentration of resulting genomic DNA was confirmed on an Agilent TapeStation

回复 where to get generic cytotec without insurance 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注

About Me

一位程序员,会弹吉他,喜欢读诗。
有一颗感恩的心,一位美丽的妻子,两个可爱的女儿
mail: geraldlee0825@gmail.com
github: https://github.com/lisuxiaoqi
medium: https://medium.com/@geraldlee0825