なんかgnuのvimとか入れたほうが早いような気がしますが、MacのVimにカーソル位置を記憶させる方法です。
vim ~/.vimrc
---
if has("autocmd")
augroup redhat
" In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
augroup END
endif
---
・追記
こちらのまとめがすごく良い
https://qiita.com/iwaseasahi/items/0b2da68269397906c14c


