junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vertically center currently active line/paragraph

lokesh-krishna opened this issue · comments

Thank you so much for both Goyo and Limelight. I can't express how grateful I am for both of them and to you for creating them.

Could you consider looking into vertically centering the currently active line/paragraph the way that Zen for Atom does? It offers an even better writing experience because the text isn't constantly reflowing as you type and also becasue you aren't looking at the bottom of the screen but at the center.

Here is a gif I made to show what I mean:

zen

The reflowing in the gif is because the vertical centering doesn't come into effect until you reach that point of the scree.

I know this might be big enough to demand its own plugin (name it Typewriter maybe? :P).

Thanks for reading :)

Vim provides scrolloff option, so you might want to tweak this setting on your GoyoEnter/GoyoLeave.

:set scrolloff=999

Thanks, this is exactly what I wanted :)
Could you consider adding this to the README to either Limelight or Goyo as a recommendation? It goes really well with them.

Also, there is a small amount of scrolling within a paragraph when I am using this setting. Is that normal?

@lokesh-krishna This has been added to the Goyo readme, you should be able to close this issue.

Any scroll inside a paragraph probably means you didn't set the scrolloff value higher that 1/2 your terminal height.