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))
|
(Color scheme: [seoul256](https://github.com/junegunn/seoul256.vim))
|
||||||
|
|
||||||
|
Best served with [limelight.vim](https://github.com/junegunn/limelight.vim).
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
@@ -50,21 +52,23 @@ change the default settings of Goyo window, you can define before and after
|
|||||||
callbacks as follows in your .vimrc.
|
callbacks as follows in your .vimrc.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
function! Goyo_before()
|
function! GoyoBefore()
|
||||||
silent !tmux set status off
|
silent !tmux set status off
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
|
Limelight
|
||||||
" ...
|
" ...
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! Goyo_after()
|
function! GoyoAfter()
|
||||||
silent !tmux set status on
|
silent !tmux set status on
|
||||||
set showmode
|
set showmode
|
||||||
set showcmd
|
set showcmd
|
||||||
|
Limelight!
|
||||||
" ...
|
" ...
|
||||||
endfunction
|
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:
|
More examples can be found here:
|
||||||
|
|||||||
Reference in New Issue
Block a user