junegunn / goyo.vim

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

Option to retain normal &sidescrolloff value #241

Closed adigitoleo closed 3 years ago

adigitoleo commented 3 years ago

Today I realised that Goyo sets sidescrolloff=0 by default. This behaviour doesn't really work for me (small laptop screen), especially because I use nowrap. After the automatic formatting splits up a long line that I just wrote, the start of the new line is out of view to the left.

If this is something you are open to, I am happy to work on a PR (next week) to make this behaviour optional (unless someone can do it earlier). For now I can use the GoyoEnter autocommand to persist my normal sidescrolloff setting.

Let me know what you think.

adigitoleo commented 3 years ago

Closing since I no longer use this plugin and I won't get time to do this in the near future.