84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
The description of the problem is rather obscure, so I will give an example directly There is a file like this
A1 A2 A3
hopes to be replaced with
F1B1 F2B2 F3B3
be written?
vim’s regular expressions are quite special, see http://vimregex.com/, but it supports back references, but you need to use escaped brackets ( 和 ),然后在替换部分依序引用(如, 1).
(
)
1
:%s:A\(\d\+\):FB:g
:%s/A(d+)/F1B/g You can use regular expressions after escaping
vim’s regular expressions are quite special, see http://vimregex.com/, but it supports back references, but you need to use escaped brackets
(
和)
,然后在替换部分依序引用(如,1
).:%s/A(d+)/F1B/g
You can use regular expressions after escaping