summaryrefslogtreecommitdiff
path: root/modules/goyo-limelight.vim
blob: 74b6bea3f3d68b8913e9bee3ef7a0c3b72c36754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

"Make window a little bigger"
"
let g:goyo_width=100
let g:goy_height=95
"
"
" Disable Deoplete "

function! s:goyo_enter()
  
  call deoplete#custom#option('auto_complete', v:false)
  set spell spelllang=en_us
  set wrap
  set conceallevel=0
  set tw=100
  set noshowcmd
  set scrolloff=999
""  set background=light
""  colorscheme flattened_light
  Limelight
  " ...
endfunction

function! s:goyo_leave()

  call deoplete#custom#option('auto_complete', v:true)
  set nospell
  set wrap!
  set showcmd
  set scrolloff=5
""  set background=dark
""  colorscheme Tender
  Limelight!
  " ...
endfunction

autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()