当前位置:网站首页>VIM string substitution
VIM string substitution
2022-07-08 01:56:00 【Pengshiyu】
grammar :
:<range> s/<search_string>/<replace_string>/<modifier>
Parameter description
- range - Define execution “ Find and replace ” The scope of the function , There are two different values :
- % - Execute... On the entire file
- <start _line> <end_line> - Perform operations on a specific set of lines
- search_string - String to replace
- replace_string - Replace the new string of the old string
- modifier - Determine substitution behavior , There are several different values :
- g - Global replacement
- gc - Ask for confirmation before each replacement
- gn - Ignore the replacement function and highlight the search results .
Example
# Global replacement a by b
:%s/a/b/g
Reference resources
Vim Find and replace string commands
边栏推荐
- How to make enterprise recruitment QR code?
- 保姆级教程:Azkaban执行jar包(带测试样例及结果)
- From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
- How to fix the slip ring
- 发现值守设备被攻击后分析思路
- Break algorithm --- map
- Tapdata 的 2.0 版 ,開源的 Live Data Platform 現已發布
- Voice of users | winter goes and spring comes, waiting for flowers to bloom -- on gbase 8A learning comprehension
- GBASE观察 | 数据泄露频发 信息系统安全应如何守护
- mysql/mariadb怎样生成core文件
猜你喜欢
【SolidWorks】修改工程图格式
ANSI / nema- mw- 1000-2020 magnetic iron wire standard Latest original
burpsuite
子矩阵的和
ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版
Why did MySQL query not go to the index? This article will give you a comprehensive analysis
C语言-Cmake-CMakeLists.txt教程
日志特征选择汇总(基于天池比赛)
分布式定时任务之XXL-JOB
Introduction to ADB tools
随机推荐
Is it necessary for project managers to take NPDP? I'll tell you the answer
powerbuilder 中使用线程的方法
2022国内十大工业级三维视觉引导企业一览
break net
If time is a river
Codeforces Round #649 (Div. 2)——A. XXXXX
Voice of users | understanding of gbase 8A database learning
由排行榜实时更新想到的数状数值
WPF 自定义 写实风 雷达图控件
PHP 计算个人所得税
metasploit
nmap工具介绍及常用命令
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
Redisson distributed lock unlocking exception
Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
cv2-drawline
批次管控如何实现?MES系统给您答案
ClickHouse原理解析与应用实践》读书笔记(8)
系统测试的类型有哪些,我给你介绍
快手小程序担保支付php源码封装