A Vim plugin that toggles a centered, minimal writing window and hides distracting UI while you edit.
Overview
Goyo.vim is a Vim plugin that switches the editor into a distraction-free writing layout. Running :Goyo toggles a narrowed central buffer with decorative margins, adjustable width and height, and optional line numbers controlled through settings.
You can resize the writing window with count modifiers and dimension expressions using WIDTHxHEIGHT plus optional offset components, including percentage-based sizing. Defaults cover width, height, line numbers, and decoration density, all overridable through Vim variables.
On enter, Goyo can temporarily disable common statusline and gutter plugins such as airline, powerline, lightline, signify, and gitgutter. Custom GoyoEnter and GoyoLeave callbacks let you disable or restore other plugins and tweak window behavior for your setup.
The mode is meant to pair with focused-writing plugins such as limelight.vim. It preserves split layouts, blocks interaction with empty margin windows, and can be closed with :quit, :close, :tabclose, or :Goyo. It realigns on terminal resize and color scheme changes.
Key features
- :Goyo toggle command
- Configurable width and height
- Percentage-based dimension syntax
- Temporary UI chrome suppression
- GoyoEnter and GoyoLeave callbacks
- Works with window splits
- Dynamic resize on terminal changes
- Plugin manager installation
Use cases
- Long-form writing in Vim
- Minimal editing sessions
- Blog and prose drafting
- Paired with limelight.vim
- Custom distraction-free setup