From 650ce9db19a243f4f1cf414a5ab42cb152ecf69b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 2 Dec 2013 02:51:42 +0900 Subject: [PATCH] Set statusline according to winwidth() for bg-less color schemes --- plugin/goyo.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/goyo.vim b/plugin/goyo.vim index b8ffa89..80efac5 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -126,7 +126,6 @@ function! s:goyo_on(width) set nonu nornu set colorcolumn= - set statusline=\ set winwidth=1 set winheight=1 set laststatus=0 @@ -143,6 +142,8 @@ function! s:goyo_on(width) call s:resize_pads() call s:tranquilize() + let &statusline = repeat(' ', winwidth(0)) + augroup goyo autocmd! autocmd BufWinLeave call s:goyo_off()