junegunn / goyo.vim

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

winminheight error #13

Closed keith closed 10 years ago

keith commented 10 years ago

I'm getting this error when running :Goyo

Error detected while processing function <SNR>62_goyo..<SNR>62_goyo_on:
line   56:
E591: 'winheight' cannot be smaller than 'winminheight': winheight=1

I assume it's because I have these lines setting those settings in my vimrc

junegunn commented 10 years ago

I've just fixed the error. Thanks for the report!

keith commented 10 years ago

Awesome thanks!

Keith Smiley

On Monday, December 30, 2013 at 8:41 PM, Junegunn Choi wrote:

I've just fixed the error. Thanks for the report!

— Reply to this email directly or view it on GitHub (https://github.com/junegunn/goyo.vim/issues/13#issuecomment-31379934).

keith commented 10 years ago

I still see this error:

Error detected while processing function <SNR>31_blank..<SNR>31_goyo_off:
line   33:
E36: Not enough room
keith commented 10 years ago

And when turning it on:

Error detected while processing function <SNR>31_goyo..<SNR>31_goyo_on:
line   56:
E36: Not enough room
junegunn commented 10 years ago

Oh, I should have tested with all three lines in your .vimrc

set winheight=7
set winminheight=7
set winheight=999
junegunn commented 10 years ago

Alright, I think this solves the problem. Could you test it again?

keith commented 10 years ago

Yep looks good. Thanks!

junegunn commented 10 years ago

Okay, thanks!