junegunn / junegunn/goyo.vim

Weird effect when entering fullscreen with Goyo

Open
#152 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

When I call Goyo with Limelight for the first time with fullscreen command I am getting weird side-effect. The text is really, really narrow (like maybe 30 char width or less). Toggling Goyo again and then again brings everything back to normal but it is annoying.

When I call Goyo without fullscreen option and set the fullscreen later it shows no side-effects.

My g:goyo_width=80 or 120.

screen shot 2017-05-01 at 18 56 22

```
function! s:goyo_enter()
if has('gui_running')
set fullscreen
let &showbreak="↳ "
endif
ALEToggle
autocmd InsertLeave * :set norelativenumber
set nonumber
set noshowmode
set noshowcmd
set scrolloff=99
Limelight
endfunction
```

`autocmd! User GoyoEnter nested call goyo_enter()`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the shown s:goyo_enter() function, fullscreen setting, Limelight, and nested GoyoEnter autocmd. Start by tracing the first Goyo invocation and the fullscreen-related behavior, then compare it with toggling Goyo twice. Done means entering Goyo with fullscreen no longer makes the text unusually narrow.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.