vimrc: Inline the cursor restoring function