【vim】替换(一)
来源:互联网 发布:幼儿园网络培训意义 编辑:程序博客网 时间:2024/06/06 00:03
:s/old/new/
This changes the first occurrence of the pattern old to new on the current line
:s/old/new/g
The g option affects each pattern on a line; don’t
confuse it with the :g command, which affects each line of a file
:1,30s/his/the/gc
Confirming Substitutions(确认是否替换)
:g/pattern/s/old/new/g
The first g tells the command to operate on all lines of a file. pattern identifies the lines
on which a substitution is to take place.
- 【vim】替换(一)
- 每日一Vim(3)——替换
- 【vim】替换(二)
- vim 分行替换(块替换)
- vim替换
- vim替换
- vim 替换
- vim 替换
- vim替换
- vim替换
- vim替换
- vim 替换
- vim 替换
- vim替换
- vim 替换
- vim替换
- vim 替换
- vim 替换
- AES加密算法的实现原理
- linux网络编程(socket)
- left join NULL 值问题
- CSS3中的全新色彩表现方式
- monkeyrunner2
- 【vim】替换(一)
- 红黑树实现(Java语言)
- 黑马程序员_java-String类
- 大数据量、高效通信及入库程序设计的关键实现技术要求
- Java泛型简明教程
- vold.fstab DirectVolume
- 简单记录ORA-15063
- Java建立URL请求
- clojure测试说明