goto-last-edit package This package keeps track of the edits location and allows you to move back and forward in the edits history Move the cursor to the last edit position when you type ctrl+i Move the cursor to the next edit position when you type ctrl+alt+i