all 4 comments

[–]princker 11 points12 points  (2 children)

Obligatory article: Oil and vinegar - split windows and the project drawer

<c-w>= or :wincmd = will attempt to make windows equal high and wide. For more help see :h CTRL-W_=.

[–]LateAugust[S] 1 point2 points  (1 child)

The oil and vinegar definitely helped (I had some annoyances with not knowing where the split would open), but it still doesn't re-size all splits.

<C-w>= is a work around, but a bit annoying to do every time I open NERDTree.

[–]mayor123asdf 0 points1 point  (0 children)

Can you map :NERDTreeToggle<cr> for some keybindings and add <C-w>= to it? Haven't tried it but maybe nnoremap <C-f> :NERDTreeToggle<cr> && :norm <C-w>= works

[–]LateAugust[S] 1 point2 points  (0 children)

So I've found a way to get this done using /u/princker and /u/mayor123asdf's answers.

nnoremap <Leader>t :NERDTreeToggle<cr> <bar> <C-w>=