If you don’t clean it properly, the smell will linger. The bad smell coming from the vomit or stains is caused by bacteria. Even if you’ve removed the residues of the vomit, the smell will likely last. Thus, you’ll have to clean it properly with vinegar and water to kill off the bacteria.