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:
Junegunn Choi
2014-06-03 10:14:27 +09:00
parent 5bea57ebf5
commit ad87a5b35a

View File

@@ -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
----------- -----------