mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-08 11:03:48 -05:00
5c164c916aca3c3ca9fa4b33339bdfc1842dfbf4
limelight.vim 
Hyperfocus-writing in Vim.
Best served with Goyo.vim. Works on 256-color terminal or on GVim.
Usage
Limelight [0.0 ~ 1.0]- Turn Limelight on
Limelight!- Turn Limelight off
Limelight!! [0.0 ~ 1.0]- Toggle Limelight
Options
For some color schemes, Limelight may not be able to calculate the color for
dimming down the surrounding paragraphs. In that case, you need to define
g:limelight_conceal_ctermfg or g:limelight_conceal_guifg.
" Color name (:help cterm-colors) or ANSI code
let g:limelight_conceal_ctermfg = 'gray'
let g:limelight_conceal_ctermfg = 240
" Color name (:help gui-colors) or RGB color
let g:limelight_conceal_guifg = 'DarkGray'
let g:limelight_conceal_guifg = '#777777'
" Default: 0.5
let g:limelight_default_coefficient = 0.7
Goyo.vim integration
function! GoyoBefore()
Limelight
endfunction
function! GoyoAfter()
Limelight!
endfunction
let g:goyo_callbacks = [function('GoyoBefore'), function('GoyoAfter')]
Acknowledgement
Thanks to @Cutuchiqueno for suggesting the idea.
License
MIT
Languages
Vim Script
100%
