I currently have a Vim function that will wrap selected text within a time.time() block so that I can quickly time things.
I would like for the function to also go to the top of the file, check if import time exists or not, and insert import time only if it doesn't exist already.
Is there any way to check if text exists or not in Vim?