mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-15 14:53:50 -05:00
Doc update: Function name must start with a capital
see: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.260
This commit is contained in:
@@ -50,29 +50,26 @@ 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! s:goyo_before()
|
function! Goyo_before()
|
||||||
silent !tmux set status off
|
silent !tmux set status off
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
" ...
|
" ...
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:goyo_after()
|
function! Goyo_after()
|
||||||
silent !tmux set status on
|
silent !tmux set status on
|
||||||
set showmode
|
set showmode
|
||||||
set showcmd
|
set showcmd
|
||||||
" ...
|
" ...
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let g:goyo_callbacks = [function('s:goyo_before'), function('s:goyo_after')]
|
let g:goyo_callbacks = [function('Goyo_before'), function('Goyo_after')]
|
||||||
```
|
```
|
||||||
|
|
||||||
More examples can be found here:
|
More examples can be found here:
|
||||||
[Customization](https://github.com/junegunn/goyo.vim/wiki/Customization)
|
[Customization](https://github.com/junegunn/goyo.vim/wiki/Customization)
|
||||||
|
|
||||||
(If you get the error `Unknown function: s:goyo_before`, define the callback
|
|
||||||
functions as globals. e.g. `g:goyo_before`)
|
|
||||||
|
|
||||||
Inspiration
|
Inspiration
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user