junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Breaks remembering last line #110

Open rwxrob opened 8 years ago

rwxrob commented 8 years ago

Noticed that this code for remembering what line and returning when reopening the file does not work with Goyo enabled:

" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
toraritte commented 6 years ago

My issue is probably related to this one where leaving a line and moving back would always place the cursor on the very first column, regardless where the cursor was previously.