I'm a "car guy" who keeps his cars for a very long time, and when it comes time to sell, usually makes money on it. My daily driver for the past 20 years (bought it on 7/4/1999) is a 1962 Volvo. I'll drive it another 10 years, 'til I retire, perhaps even a bit longer, than sell it for more than I have in it. No repairs worth mentioning. I also have a Cummins Turbodiesel-powered '92 Dodge pickup that I bought 18 years ago for $4,500. I'll keep that one also 'til my retirement in 10 years. If I wanted to, I could sell it today for twice what I paid for it in 2001. Also no repairs worth mentioning, just consumables and a few lil' things.
Anyway, the only reason for my post was your $4K engine repair comment. While it may indeed be time to kiss that Vibe good buy, there is still the option to buy a decent engine for $600 used and have it installed for another $400. Beats the $4K number by 1:4.