From 97493356c2cbe3fd151728518ee5f9f943808bab Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 30 Dec 2013 20:09:43 -0800 Subject: [PATCH] Updated Customization (markdown) --- Customization.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Customization.md b/Customization.md index f683e68..d05b479 100644 --- a/Customization.md +++ b/Customization.md @@ -1,3 +1,29 @@ +## Callbacks for GVim + +```vim +function! g:goyo_before() + if has('gui_running') + set fullscreen + set background=light + set linespace=7 + elseif exists('$TMUX') + silent !tmux set status off + endif +endfunction + +function! g:goyo_after() + if has('gui_running') + set nofullscreen + set background=dark + set linespace=0 + elseif exists('$TMUX') + silent !tmux set status on + endif +endfunction + +let g:goyo_callbacks = [function('g:goyo_before'), function('g:goyo_after')] +``` + ## Disabling plugins ### MiniBufExpl with `g:miniBufExplBuffersNeeded` set