No one can tell you definitively except for your doctor. If you know who your anesthesiologist will be, you should call and ask him or her.
I've seen people vaping in the hospital hours after a lobectomy, and I've smelled tobacco smoke on people who were in the pre-op holding area. I think a big concern with it would be that you can't take anything by mouth 8 to 12 hours before surgery, including water. This plus vaping could lead to dehydration. Plus nicotine causes blood vessel constriction so it could affect healing time due to decreased circulation. However, last year I went for surgery to get a couple of wisdom teeth out, and I stopped smoking the day before. I arrived in the morning for my surgery and they hooked me up to the machine that takes your vital signs. My heart rate was only around 60, where it normally was around 90 when I was a smoker. And that was before they gave me any medications. While I was under, my heart rate and breathing slowed so much that they had to stop the sedation anesthesia in the middle of the surgery and I woke up. Not fun! I don't know for sure if it was because I didn't smoke, but I do know that when you stop a substance that you usually take, you have a profound opposite reaction - e.g. caffeine increases HR, so withdrawing from caffeine you will have a slow HR, painkillers decrease HR, so withdrawing from them you will have a high HR.
Anyway, this is just anecdotal and you should ask!