【发布时间】:2021-11-07 02:16:28
【问题描述】:
我想在 vim 中搜索一个模式,并在它出现的每一行上,将文本添加到行尾。例如,如果搜索模式是print(,而要添加的文本是):
from __future__ import print_function
print('Pausing 30 seconds...'
print("That's not a valid year!"
应该变成
from __future import print_function
print('Pausing 30 seconds...')
print("That's not a valid year!")
【问题讨论】:
-
也:将光标放在“打印”上,点击
*A)和n.重复令人作呕的广告 -
非常感谢,谢谢。