Vim remembers cursor position and undo history