I had a very similiar problem when my EGR lines were cracked. I was told that revving up the engine right after you start bypasses the EGR so the computer didn't catch the vacuum leak. I'm pretty sure that's what I was told but I may be wrong. The problem went away when I put new lines on it. I'd check for some leaks. Good luck with yours.