goyo.vim
goyo.vim copied to clipboard
Breaks remembering last line
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
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.