vim: 重复操作

宏可以重复执行命令。但是宏是大炮,在面对一些小鸟时,不用动用这个重武器。我们有更简单的工具

点号用于重复操作

通过点号 . 可以实现重复操作,我们以在行尾添加/为例:

  1. 进入normal mode, 在任意行输入A,行尾插入字符/
  2. ESC再次进入normal mode
  3. 移动光标到需要插入/的行,按 . 号操作成功

& 执行重复替换

有时候你刚执行完替换操作,即:%s这样的操作,保不齐过一会儿又需要再次执行同样的替换。实在是难得再输一次substitute命令。怎么办?

只需在normal模式下把光标移动到需要替换的行,按下&键,搞定!自动执行上一次替换动作



《 “vim: 重复操作” 》 有 3 条评论

  1. The receptor phase samples were collected in pre weighed scintillation vials; the post weights were taken at the end of the study augmentin pediatric dose per kg

  2. medicamento priligy estudios clinicos For boils that are larger than a pea or have a large area of redness around them indicating deeper infection, see a doctor

  3. Brand, nair v priligy online pharmacy Inform patients with diabetes mellitus that ketoacidosis is a serious life threatening condition and that cases of ketoacidosis have been reported during use of FARXIGA with diabetes mellitus, sometimes associated with illness or surgery among other risk factors

回复 amoxil augmentin ОґО№О±П†ОїПЃО± 取消回复

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

About Me

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