Distraction free writing in Vim with Goyo | Hund

Hund

Distraction free writing in Vim with Goyo

Thursday, September 23, 2021

I can’t believe that I’ve forgotten to write about one of my most used Neovim plugin ever. The plugin I’m talking about is called Goyo.

It adds a distraction free mode that helps me focus on my writing by centering the content and hiding all other elements.

Neovim in fullscreen with Goyo activated.

Usage

Toggle Goyo:

:Goyo

Turn on and resize Goyo to the dimension 100x50:

:Goyo 100x50

Turn off Goyo:

:Goyo!

I have bound the toggle feature to the key <Leader>g:

map <Leader>g :Goyo<CR>

My configuration changes

The plugin works just fine as is, but I did change the text area to 100x50 (as seen in the example image above), as I find that to be a better fit for me.

This is the settings that I added to my configuration file:

let g:goyo_width=100
let g:goyo_height=50

Meta

Feedback

If you want to leave feedback, you can do so by either sending me a message via email, XMPP or via IRC.