junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.52k stars 118 forks source link

Goyo for single visual block #204

Closed steve-chavez closed 5 years ago

steve-chavez commented 5 years ago

I'd like to select a block of code in visual mode and then show only that block in Goyo. This is useful for presentations.

Wonder if it's possible to do that now.

Thanks.

junegunn commented 5 years ago

No, it's not. But you can come up with your own VimScript function/command that copies the lines to a new temp buffer, and executes Goyo on it.