junegunn / junegunn/goyo.vim

Breaks remembering last line

Open
#110 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
4.7k
Forks
118
PR merge metrics
No merged PRs in 30d

Description

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

``` vimscript
" 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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported behavior in Vim with Goyo enabled and the shown BufReadPost autocmd. Confirm that reopening a file restores the last cursor line, including when Goyo is active; the issue does not name a file or test to inspect.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.