From ee4ebc8e78fdcf56b3aa20a9aab863532772a807 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 4 Dec 2013 23:49:03 +0900 Subject: [PATCH] Set sidescroll=1 sidescrolloff=0 (#6) --- plugin/goyo.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/goyo.vim b/plugin/goyo.vim index bf1154b..d7dc87e 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -123,7 +123,9 @@ function! s:goyo_on(width) \ 'winwidth': &winwidth, \ 'winheight': &winheight, \ 'statusline': &statusline, - \ 'ruler': &ruler + \ 'ruler': &ruler, + \ 'sidescroll': &sidescroll, + \ 'sidescrolloff': &sidescrolloff \ } if has('gui_running') let t:goyo_revert.guioptions = &guioptions @@ -162,6 +164,8 @@ function! s:goyo_on(width) set fillchars+=vert:\ set fillchars+=stl:. set fillchars+=stlnc:\ + set sidescroll=1 + set sidescrolloff=0 " Hide left-hand scrollbars if has('gui_running')