I would like to find a template in vim, and in each line where this happens add text to the end of the line. For example, if the search template print(
, and the text to add - )
:
from __future__ import print_function
print('Pausing 30 seconds...'
print("That not a valid year!"
should become
from __future import print_function
print('Pausing 30 seconds...')
print("That not a valid year!")
source
share