junegunn / goyo.vim

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

Run Goyo inside a Panel or Split #239

Closed chrisburnor closed 1 month ago

chrisburnor commented 3 years ago

It would be awesome if there were a straightforward mode for Goyo to be invoked but only for the current panel or split.

If I'm working on a long document, it is helpful to the the outline or footnotes available in a separate panel for quick reference.

samarulmeu commented 1 month ago

Any news on the implementation of this? I just discovered that I cannot use a vertical split with goyo.

Thank you!

junegunn commented 1 month ago

If you look at how Goyo works, you'll see that this isn't really possible.

Goyo opens a new tab and creates 4 invisible splits around the window in the middle. So there are actually 5 split windows on the screen you're seeing.

image

It's a bit of a gimmick.

AFAIK, there's no native way to add paddings to a window in Vim.