Undo mode, multi-term and better window switching