goyo-limelight.vim 691 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. "Make window a little bigger"
  2. "
  3. let g:goyo_width=100
  4. let g:goy_height=95
  5. "
  6. "
  7. " Disable Deoplete "
  8. function! s:goyo_enter()
  9. call deoplete#custom#option('auto_complete', v:false)
  10. set spell spelllang=en_us
  11. set wrap
  12. set tw=100
  13. set noshowcmd
  14. set scrolloff=999
  15. "" set background=light
  16. "" colorscheme flattened_light
  17. Limelight
  18. " ...
  19. endfunction
  20. function! s:goyo_leave()
  21. call deoplete#custom#option('auto_complete', v:true)
  22. set nospell
  23. set wrap!
  24. set showcmd
  25. set scrolloff=5
  26. "" set background=dark
  27. "" colorscheme Tender
  28. Limelight!
  29. " ...
  30. endfunction
  31. autocmd! User GoyoEnter nested call <SID>goyo_enter()
  32. autocmd! User GoyoLeave nested call <SID>goyo_leave()