" plugin/restore-position.vim

" Jump to last known position
" @see help docs on last-position-jump

augroup vimrc_rlp

  au!

  au BufReadPost *
    \ if (&ft != 'gitcommit') && line("'\"") > 1 && line("'\"") <= line("$") |
    \   execute "normal! g`\"" |
    \ endif

augroup END

" plugin/restore-position.vim

" Jump to last known position
" @see help docs on last-position-jump

augroup vimrc_rlp

  au!

  au BufReadPost *
    \ if (&ft !~ '^git\c') && line("'\"") > 1 && line("'\"") <= line("$") |
    \   execute "normal! g`\"" |
    \ endif

augroup END

Fix restore of last cursor position in vim
Fix restore of last cursor position in vim

dweidner/dotfiles,dweidner/dotfiles