Just add the following line to your ~/.vimrc :
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("") | exe "normal `\"" | endif