Add persistent undo and relative line numbers