2013-12-02 02:59:12 +09:00
2013-12-04 13:17:31 +09:00

goyo.vim (고요)

Distraction-free writing in Vim.

Installation

Use your favorite plugin manager.

  • vim-plug
    1. Add Plug 'junegunn/goyo.vim' to .vimrc
    2. Run :PlugInstall

Usage

:Goyo [width]

Configuration

  • g:goyo_width (default: 80)
  • g:goyo_margin_top (default: 4)
  • g:goyo_margin_bottom (default: 4)
  • g:goyo_linenr (default: 0)
  • g:goyo_callbacks ([before_funcref, after_funcref])

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')]

Inspiration

License

MIT

Description
🌷 Distraction-free writing in Vim
Readme MIT 277 KiB
Languages
Vim Script 100%