limelight.vim is a minimalist plugin that enhances focus by subtly dimming all but the paragraph or block surrounding the cursor. It’s designed to complement distraction-free modes such as goyo.vim, helping writers and coders keep attention on their current context. The plugin adjusts highlight groups dynamically so the active text remains clear while surrounding text fades into a low-contrast tone. It supports fine-grained control over opacity and integrates with any colorscheme without breaking syntax highlighting. Because it’s lightweight and entirely written in Vimscript, it runs smoothly even on large files. The visual effect creates a calm, spotlight-like environment that reduces visual clutter while editing prose, code comments, or long documentation files.
Features
- Dims surrounding text to emphasize the current paragraph or code block
- Adjustable opacity level and fade intensity
- Seamless integration with distraction-free plugins like goyo.vim
- Colorscheme-agnostic design that adapts highlight groups automatically
- Lightweight Vimscript implementation with minimal performance impact
- Optional autocmds for automatic activation in certain filetypes