Distraction-free writing in Vim.
Use your favorite plugin manager.
Plug 'junegunn/goyo.vim'
:PlugInstall
:Goyo [width]
g:goyo_width
g:goyo_margin_top
g:goyo_margin_bottom
g:goyo_linenr
g:goyo_callbacks
By default, vim-airline, vim-powerline, powerline, and vim-gitgutter are temporarily disabled while in Goyo mode.
If you have other plugins that you want to disable/enable, or if you want to change the default settings of Goyo window, you can define before and after callbacks as follows in your .vimrc.
function! s:goyo_before() " endfunction function! s:goyo_after() " endfunction let g:goyo_callbacks = [function('s:goyo_before'), function('s:goyo_after')]
MIT