mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-18 08:13:43 -05:00
Working setup to use Goyo together with UndoTree
@@ -83,3 +83,20 @@ endfunction
|
|||||||
autocmd! User GoyoEnter call <SID>goyo_enter()
|
autocmd! User GoyoEnter call <SID>goyo_enter()
|
||||||
autocmd! User GoyoLeave call <SID>goyo_leave()
|
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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user