auto restore cursor to last edit position when open file

Vim will lost cursor position when switch buffer or reopen file, so this hack will make it works like a charm.