junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Help with resizing goyo and NERDTree #193

Closed thisadamis closed 5 years ago

thisadamis commented 5 years ago

Hello I am needing some help with resizing goyo after I toggle NERDTree.

I am wanting to be able to toggle NERDTree on and off while using goyo and have the size automatically reset for goyo. I have this working for undotree using the below code. I just don't know how to do it for NERDTree. Can anybody help?

" === UndoTree " using relative positioning instead let g:undotree_CustomUndotreeCmd = 'vertical 32 new' let g:undotree_CustomDiffpanelCmd = 'belowright 12 new'

thisadamis commented 5 years ago

All this can be closed now. I found nnoremap :NERDTreeToggle:Goyo x and this does exactly what I was needing. :)

junegunn commented 5 years ago

Or you can hit CTRL-W =.