When editing a file, always jump to the last known cursor position.

Don't do it for commit messages, when the position is invalid, or when inside
an event handler (happens when dropping a file on gvim).

https://github.com/thoughtbot/dotfiles/blob/master/vimrc#L34-L40