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