junegunn / goyo.vim

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

window navigation #29

Closed Konfekt closed 10 years ago

Konfekt commented 10 years ago

Hello,

In Goyo mode, Is there a way to avoid navigating to one of those windows surrounding the central one where text editing takes place?

junegunn commented 10 years ago

Goyo already handles that using WinEnter event. You'll notice that you can't move to those windows with CTRL-W + w/h/j/k/l as Goyo sends cursor back to the main window immediately. Are you using a different method?

Konfekt commented 10 years ago

Ok, it is true that the cursor is sent back, but the below window increases in size. It was an issue by the golden ratio plugin.

This line in goyo_before()``` fixes itlet g:golden_ratio_autocommand = 0```,