Fixed persistent undo, improved yankdir