From 8116813c23937bbf242f3bc95c606d2e0caae33f Mon Sep 17 00:00:00 2001 From: Attila Gulyas Date: Sun, 22 Oct 2017 03:10:34 -0700 Subject: [PATCH] Working setup to use Goyo together with UndoTree --- Customization.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Customization.md b/Customization.md index f87934d..ab53086 100644 --- a/Customization.md +++ b/Customization.md @@ -82,4 +82,21 @@ endfunction autocmd! User GoyoEnter call goyo_enter() autocmd! User GoyoLeave call goyo_leave() +``` + +## Setup to use it together with UndoTree +(From [stackexchange](https://vi.stackexchange.com/questions/13993/what-is-a-working-setup-to-use-vim-plugins-undotree-and-goyo-together) answer) +```vim +UndoTree layouts use absolute positioning commands by default (topleft,botright) but it can be configured to accept custom ones. + +My .vimrc setup: + +" === UndoTree +" using relative positioning instead +let g:undotree_CustomUndotreeCmd = 'vertical 32 new' +let g:undotree_CustomDiffpanelCmd= 'belowright 12 new' + +" === Goyo +" changing from the default 80 to accomodate for UndoTree panel +let g:goyo_width = 104 ``` \ No newline at end of file