Depends on what you are swapping - just the short block or whole engine. If the former - no worries, the bottom ends are the same between the two variants. If you want to swap in the whole engine - little bit different story.
Most of the wiring will have to come out of the Vibe, as well as the sensors. Pedal will have to be swapped as well - as I'm pretty sure that this model year of Vibe has DBW instead of the cable throttle body. You also have to move over the sensors, especially the O2 sensor - as with this engine, it is now a air fuel ratio sensor - has a much wider resolution, that a conventional O2 sensor can output. Intake will have to change - MAF vs MAP issue. Note that the transaxle is geared differently as well - to match the different powerband on the newer engine - the switched from a tubular aluminum intake runner to a shorter composite intake, different ECM air/fuel map and timing, and revised camshaft profile to boost mid-range and upper range power. Concequently, the engine likes to run higher RPMs compared to the 8th generation. Some have retained their old transaxle and swapped it with the new engine - and reported good results, but I'm pretty wary of a big design change. Normally, if the manufacturer changes the gearing that much - it is for good reason. EVAP system is completely changed as well - depending on where you live at - you might have to yank all the EVAP stuff off the donor car to make it "street legal". Not sure if it will happen on your car, but sometimes you'll have to swap the gauge cluster as well. Some cars won't run without the correct cluster. Mazda is that way for example.
Since you have both cars there - you have a much better chance to swap the engine drivelines. This kind of swap is doable and has been done before, but it is not for the faint of heart. Wiring is the tough part here.