Toggle a distraction-free writing mode in Vim to focus on drafting documents or blog posts.
Combine with limelight.vim to dim all text except the paragraph you are actively editing.
Customize the writing window size using percentage-based or fixed-character dimensions to suit your screen.
Add custom startup and shutdown hooks via GoyoEnter/GoyoLeave events to configure your ideal writing environment.
| junegunn/goyo.vim | mbbill/undotree | pangloss/vim-javascript | |
|---|---|---|---|
| Stars | 4,675 | 4,530 | 3,790 |
| Language | Vim Script | Vim Script | Vim Script |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | writer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Goyo is a Vim plugin that creates a focused, distraction-free writing environment inside the Vim text editor. When you activate it with the :Goyo command, it hides all the surrounding chrome, status bars, and line decorations, and centers your text in a clean window so you can concentrate on writing. Typing :Goyo again toggles it off and restores your normal editing environment. The name comes from a Korean word meaning quietness or stillness. The README recommends pairing it with another plugin called limelight.vim, which dims all text except the paragraph you are currently working on. You can control the size and position of the writing window using a dimension expression. This lets you specify width, height, and offsets either as fixed character counts or as percentages. For example, you can set the writing area to 120 characters wide, or center it at 50 percent of the screen width with a 25 percent offset. Several popular Vim plugins that add status bars or gutter indicators are automatically hidden while Goyo is active, including vim-airline, lightline.vim, vim-gitgutter, and vim-signify. For anything not handled automatically, Goyo provides two callback events, GoyoEnter and GoyoLeave, that let you run custom Vim script when the mode turns on and off. The README also includes a FAQ addressing a common issue: if you have custom color tweaks in your Vim config, exiting Goyo can reset them. The solution is to apply your color customizations inside a ColorScheme autocmd rather than directly in the config file. The plugin is licensed under MIT.
A Vim plugin that creates a distraction-free writing mode by hiding editor chrome and centering your text in a clean, quiet window. Toggle it on and off with a single command.
Mainly Vim Script. The stack also includes Vim Script, Vim.
Use freely for any purpose including commercial, just keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly writer.
This repo across BitVibe Labs
Verify against the repo before relying on details.