junegunn / goyo.vim

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

words split over lines #231

Closed jbuencuerpo closed 3 years ago

jbuencuerpo commented 3 years ago

Hi, Awesome plugin. When I re-open a file with long lines the wrap does not respect words, and they are split across lines. For example the word recently can be split on whatever letter, non even syllables. If I am writing that does not happen sometimes and the word go to the next line. This is expected or it is a bug/problem with my config? Thanks

jbuencuerpo commented 3 years ago

I found how to solve this on reddit by adding set linebreak and set wrap. I close the issue, but I suggest it may be default. Thanks.


nnoremap <silent><leader>vv :Goyo<cr>:set linebreak<cr>:set wrap<cr>
junegunn commented 3 years ago

I recommend that you use GoyoEnter event for changing the settings for Goyo.

https://github.com/junegunn/goyo.vim#callbacks