vim:替换操作

替换操作我们会经常遇到。基本语法为:

:[range]s/pattern/string/[c,e,g,i]

range 指的是范围,subsittute是一行一行的处理的。默认只处理第一行,可以通过range指定处理范围。比如:

1,7 指從第一行至第七行,1,$ 指從第一行至最後一行,也就是整篇文章,也可以 % 代表
  • pattern, 就是要被替換掉的字串,可以用 regexp 來表示。
  • string,將 pattern 由 string 所取代。
  • c[confirm],每次替換前會詢問。
  • e,不显示error。
  • g[globe],替換当前行所有。
  • i[ignore] 不分大小寫


《 “vim:替换操作” 》 有 4 条评论

  1. Extracellular water is located in the circulatory system where, as mentioned above, can cause blood pressure increases 17 augmentin where can i buy it

  2. where can i get cheap cytotec without a prescription For Western blots analysis, approximately 20 Ојg of protein lysate were loaded on 4 12 SDS PAGE gel Bio Rad and transferred on nitrocellulose membranes to be then incubated with anti UBE3A antibody E8655 Sigma Aldrich; 1 1000 and anti actin antibody MAB1501R, Millipore; 1 20000

  3. where can i buy priligy online safely Most people say that clomid dries them which is one of the downfalls with it

  4. Quantification of saponins in extractive solution of mate leaves Ilex paraguariensis A can you buy priligy online 9 corroborated the present study with their earlier findings of 1998, a cross sectional study done on patients receiving high dose cyclophosphamadide, thiotepa, and carboplatin CTC therapy and ones receiving standard dose cyclophosphamide, epiribucin, and 5 flurouracil CEF therapy

发表回复

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

About Me

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