limelight.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. limelight-vim.txt limelight-vim Last change: September 12 2024
  2. LIMELIGHT-VIM - TABLE OF CONTENTS *limelight-vim* *limelight-vim-toc*
  3. ==============================================================================
  4. limelight.vim |limelight-vim|
  5. Installation |limelight-vim-installation|
  6. Usage |limelight-vim-usage|
  7. Limelight for a selected range |limelight-vim-limelight-for-a-selected-range|
  8. Options |limelight-vim-options|
  9. Goyo.vim integration |limelight-vim-goyo-vim-integration|
  10. Acknowledgement |limelight-vim-acknowledgement|
  11. License |limelight-vim-license|
  12. LIMELIGHT.VIM
  13. ==============================================================================
  14. Hyperfocus-writing in Vim.
  15. Best served with {Goyo.vim}{1}. Works on 256-color terminal or on GVim.
  16. {1} https://github.com/junegunn/goyo.vim
  17. INSTALLATION *limelight-vim-installation*
  18. ==============================================================================
  19. Use your favorite plugin manager.
  20. *:PlugInstall*
  21. - {vim-plug}{2}
  22. 1. Add `Plug 'junegunn/limelight.vim'` to your Vim configuration file
  23. 2. Run `:source %`
  24. 3. Run `:PlugInstall`
  25. {2} https://github.com/junegunn/vim-plug
  26. USAGE *limelight-vim-usage*
  27. ==============================================================================
  28. - `Limelight [0.0 ~ 1.0]`
  29. - Turn Limelight on
  30. - `Limelight!`
  31. - Turn Limelight off
  32. - `Limelight!! [0.0 ~ 1.0]`
  33. - Toggle Limelight
  34. < Limelight for a selected range >____________________________________________~
  35. *limelight-vim-limelight-for-a-selected-range*
  36. *:Limelight*
  37. You can invoke `:Limelight` for a visual range. There are also <Plug> mappings
  38. for normal and visual mode for the purpose.
  39. *<Plug>(Limelight)*
  40. >
  41. nmap <Leader>l <Plug>(Limelight)
  42. xmap <Leader>l <Plug>(Limelight)
  43. <
  44. < Options >___________________________________________________________________~
  45. *limelight-vim-options*
  46. *g:limelight_conceal_ctermfg* *g:limelight_conceal_guifg*
  47. For some color schemes, Limelight may not be able to calculate the color for
  48. dimming down the surrounding paragraphs. In that case, you need to define
  49. `g:limelight_conceal_ctermfg` or `g:limelight_conceal_guifg`.
  50. *g:limelight_priority* *g:limelight_eop* *g:limelight_bop*
  51. *g:limelight_paragraph_span* *g:limelight_default_coefficient*
  52. >
  53. " Color name (:help cterm-colors) or ANSI code
  54. let g:limelight_conceal_ctermfg = 'gray'
  55. let g:limelight_conceal_ctermfg = 240
  56. " Color name (:help gui-colors) or RGB color
  57. let g:limelight_conceal_guifg = 'DarkGray'
  58. let g:limelight_conceal_guifg = '#777777'
  59. " Default: 0.5
  60. let g:limelight_default_coefficient = 0.7
  61. " Number of preceding/following paragraphs to include (default: 0)
  62. let g:limelight_paragraph_span = 1
  63. " Beginning/end of paragraph
  64. " When there's no empty line between the paragraphs
  65. " and each paragraph starts with indentation
  66. let g:limelight_bop = '^\s'
  67. let g:limelight_eop = '\ze\n^\s'
  68. " Highlighting priority (default: 10)
  69. " Set it to -1 not to overrule hlsearch
  70. let g:limelight_priority = -1
  71. <
  72. GOYO.VIM INTEGRATION *limelight-vim-goyo-vim-integration*
  73. ==============================================================================
  74. >
  75. autocmd! User GoyoEnter Limelight
  76. autocmd! User GoyoLeave Limelight!
  77. <
  78. ACKNOWLEDGEMENT *limelight-vim-acknowledgement*
  79. ==============================================================================
  80. Thanks to {@Cutuchiqueno}{3} for {suggesting the idea}{4}.
  81. {3} https://github.com/Cutuchiqueno
  82. {4} https://github.com/junegunn/goyo.vim/issues/34
  83. LICENSE *limelight-vim-license*
  84. ==============================================================================
  85. MIT
  86. ==============================================================================
  87. vim:tw=78:sw=2:ts=2:ft=help:norl:nowrap: