当前位置:网站首页>VIM cross line matching search
VIM cross line matching search
2022-07-26 08:16:00 【cy413026】
Catalog
vim Cross line search matching _XtremeDV The blog of -CSDN Blog _vim Inter bank matching
/^abcd Means to find at the beginning of a line abcd,/abcd$ Means to find at the end of a line abcd. however , stay /abcd^efgh and /abcd$efgh in ,^ and $ Just ordinary characters , No special meaning . by comparison , Each of the following has a special meaning in the search mode .
\ n A newline ( At the end of the line )
\ _s It's a space ( Spaces or tabs ) Or line breaks
\ _ ^ Start a line ( Zero width )
\ _ $ The end of a line ( Zero width )
\ _. Any character , Include line breaks
Example :
(1) /abcd\n*efgh
lookup abcd, Then there are zero or more line breaks , And then there was efgh.
lookup abcdefgh or abcd Followed by blank lines and efgh.
Empty lines must be empty ( No spaces or tabs ).
(2) /abcd\_s*efgh
lookup abcd Followed by any space or newline character, and then efgh.
lookup abcdefgh or abcd Followed by blank lines and efgh.
Blank lines can contain any number of spaces or tabs .
(3) /abcd\_$\_s*efgh
Find at end of line abcd, Followed by any space or newline , then efgh.
abcd There must be no characters after ( Except for line breaks ).
stay efgh Before , There can be any number of spaces , Tab or newline .
(4) /abcd\_s*\_^efgh
lookup abcd Followed by any space or newline , And then in efgh Start a line .
stay efgh Before , There must be no characters ( Except for line breaks ).
abcd There can be any number of spaces after , Tab or newline .
(5) /abcd\_.\{-}efgh
find abcd Followed by any character or newline ( As little as possible ), then efgh. This is abcd and efgh It can span multiple lines, and the middle can be any character
lookup abcdefgh or abcd Followed by any character , And then choose efgh.
边栏推荐
- Summary of traversal methods of list, set, map, queue, deque and stack
- Sort sort IP addresses
- Flex three column layout
- Using producer consumer model and dpkt to process pcap files
- 外卖小哥,才是这个社会最大的托底
- Stack simulation queue
- Exam summary on July 13, 2022
- A tutorial for mastering MySQL database audit characteristics, implementation scheme and audit plug-in deployment
- Apple's tough new rule: third-party payment also requires a percentage, and developers lose a lot!
- C # get the information of the selected file
猜你喜欢

JSP action -- usebean action
![[fastjson1.2.24 deserialization vulnerability principle code analysis]](/img/14/8f6a75fe5f06c19eeff9c7204979c3.png)
[fastjson1.2.24 deserialization vulnerability principle code analysis]

The most complete network: detailed explanation of six constraints of MySQL

吉他五线谱联系 茉莉花

JSP built-in object (implicit object)

2022-07-09 group 5 Gu Xiangquan's learning notes day02

Excel file reading and writing (creation and parsing)

JSP implicit object servlet object

Traversal mode of list, set, map, queue, deque, stack

BGP选路原则
随机推荐
vscode国内的镜像服务器加速
小组成员参加2022中国多媒体大会
2022/7/12 exam summary
Pycharm code specification tool flake8
第三天作业
利用js实现统计字符串数组中各字符串出现的次数,并将其格式化为对象数组。
AQS implementation principle
es6中函数默认参数、箭头函数、剩余参数-讲解
数组的介绍--Array
Copy pcap file with producer consumer model
The difference between throw and throws?
2022-07-08 group 5 Gu Xiangquan's learning notes day01
Random distribution learning notes
美女裸聊一时爽,裸聊结束火葬场!
Using producer consumer model and dpkt to process pcap files
SPSS uses kmeans, two-stage clustering and RFM model to study the behavior law data of borrowers and lenders in P2P network finance
mysql函数汇总之日期和时间函数
Exam summary on July 13, 2022
C# WinForm中PreviewKeyDown、KeyDown、KeyPress、KeyUp区别与联系
Spotty music data client_ ID account