Add a mechanism to restore the cursor on the way out of Vim.