mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-16 15:23:50 -05:00
Best served with limelight.vim
This commit is contained in:
10
README.md
10
README.md
@@ -7,6 +7,8 @@ Distraction-free writing in Vim.
|
||||
|
||||
(Color scheme: [seoul256](https://github.com/junegunn/seoul256.vim))
|
||||
|
||||
Best served with [limelight.vim](https://github.com/junegunn/limelight.vim).
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
@@ -50,21 +52,23 @@ change the default settings of Goyo window, you can define before and after
|
||||
callbacks as follows in your .vimrc.
|
||||
|
||||
```vim
|
||||
function! Goyo_before()
|
||||
function! GoyoBefore()
|
||||
silent !tmux set status off
|
||||
set noshowmode
|
||||
set noshowcmd
|
||||
Limelight
|
||||
" ...
|
||||
endfunction
|
||||
|
||||
function! Goyo_after()
|
||||
function! GoyoAfter()
|
||||
silent !tmux set status on
|
||||
set showmode
|
||||
set showcmd
|
||||
Limelight!
|
||||
" ...
|
||||
endfunction
|
||||
|
||||
let g:goyo_callbacks = [function('Goyo_before'), function('Goyo_after')]
|
||||
let g:goyo_callbacks = [function('GoyoBefore'), function('GoyoAfter')]
|
||||
```
|
||||
|
||||
More examples can be found here:
|
||||
|
||||
Reference in New Issue
Block a user