From ad87a5b35a91bc24d6f9e700ae9cd332f7c3d150 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 3 Jun 2014 10:14:27 +0900 Subject: [PATCH] Doc update: Function name must start with a capital see: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.260 --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f43418f..525c937 100644 --- a/README.md +++ b/README.md @@ -50,29 +50,26 @@ change the default settings of Goyo window, you can define before and after callbacks as follows in your .vimrc. ```vim -function! s:goyo_before() +function! Goyo_before() silent !tmux set status off set noshowmode set noshowcmd " ... endfunction -function! s:goyo_after() +function! Goyo_after() silent !tmux set status on set showmode set showcmd " ... 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: [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 -----------