Working setup to use Goyo together with UndoTree

Attila Gulyas
2017-10-22 03:10:34 -07:00
parent a00732fb7f
commit 8116813c23

@@ -82,4 +82,21 @@ endfunction
autocmd! User GoyoEnter call <SID>goyo_enter()
autocmd! User GoyoLeave call <SID>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
```