vim-cursor Go to previous position when opening a vim buffer, but not when writing commit messages. Just install it like any other vim plugin. You might also be interested in my vimfiles.