Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这种情况下的 vim 缩写是什么?
A BCD_x 1.pdf A BCD_x 2.pdf
期望的输出:
A BCD_x 1.pdf:::A BCD_x 2.pdf
你的意思是这样的?
:s/\s\(A\s\)/:::\1
或者这个怎么样?
:s/\sA\@=/:::
当然,与正则表达式一样,搜索和替换一切都取决于数据的细节。其中你没有给我们太多的工作。