goyo-limelight.vim 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 conceallevel=0
  13. set tw=100
  14. set noshowcmd
  15. set scrolloff=999
  16. "" set background=light
  17. "" colorscheme flattened_light
  18. "Limelight
  19. " ...
  20. endfunction
  21. function! s:goyo_leave()
  22. "call deoplete#custom#option('auto_complete', v:true)
  23. set nospell
  24. set wrap!
  25. set showcmd
  26. set scrolloff=5
  27. "" set background=dark
  28. "" colorscheme Tender
  29. "Limelight!
  30. " ...
  31. endfunction
  32. autocmd! User GoyoEnter nested call <SID>goyo_enter()
  33. autocmd! User GoyoLeave nested call <SID>goyo_leave()
  34. " Color name (:help cterm-colors) or ANSI code
  35. let g:limelight_conceal_ctermfg = 'gray'
  36. let g:limelight_conceal_ctermfg = 240
  37. " Color name (:help gui-colors) or RGB color
  38. let g:limelight_conceal_guifg = 'DarkGray'
  39. let g:limelight_conceal_guifg = '#777777'
  40. " Default: 0.5
  41. let g:limelight_default_coefficient = 0.7
  42. " Number of preceding/following paragraphs to include (default: 0)
  43. let g:limelight_paragraph_span = 0
  44. " Beginning/end of paragraph
  45. " When there's no empty line between the paragraphs
  46. " and each paragraph starts with indentation
  47. let g:limelight_bop = '^\s'
  48. let g:limelight_eop = '\ze\n^\s'
  49. " Highlighting priority (default: 10)
  50. " Set it to -1 not to overrule hlsearch
  51. let g:limelight_priority = -1