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.
Turn on and resize Goyo to the dimension
Turn off Goyo:
I have bound the toggle feature to the key
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