Set sidescroll=1 sidescrolloff=0 (#6)

This commit is contained in:
Junegunn Choi
2013-12-04 23:49:03 +09:00
parent 2b8908a455
commit ee4ebc8e78

View File

@@ -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')