From 4849327007ef0eab3592d89a6ef98b9956b66b82 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 1 Dec 2013 03:04:46 +0900 Subject: [PATCH] Apply winfixwidth and winfixheight --- plugin/goyo.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/goyo.vim b/plugin/goyo.vim index d5ecb52..451f772 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -47,7 +47,7 @@ function! s:init_pad(command) setlocal buftype=nofile bufhidden=wipe nomodifiable nobuflisted noswapfile \ nonu nocursorline colorcolumn= - \ statusline=\ winwidth=1 winheight=1 + \ statusline=\ winfixwidth winfixheight let bufnr = winbufnr(0) execute winnr('#') . 'wincmd w' @@ -111,7 +111,9 @@ function! s:goyo_on(width) let t:goyo_revert = \ { 'laststatus': &laststatus, \ 'showtabline': &showtabline, - \ 'fillchars': &fillchars } + \ 'fillchars': &fillchars, + \ 'winwidth': &winwidth, + \ 'winheight': &winheight } " gitgutter let t:goyo_disabled_gitgutter = get(g:, 'gitgutter_enabled', 0) @@ -122,6 +124,8 @@ function! s:goyo_on(width) setlocal colorcolumn= setlocal statusline=\ + set winwidth=1 + set winheight=1 set laststatus=0 set showtabline=0 set fillchars+=vert:\