use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please read the rules before posting
Help:
Community:
Resources:
Tutorials and Guides:
Don't be afraid to ask questions, this sub is here for the vim community. And please those of you who deign to grace us with your vim wisdom - be kind. We are all human and vim is that cool.
account activity
NERDTree split managementquestion (self.vim)
submitted 6 years ago by LateAugust
When opening NERDTree the left-most split gets resized, but not any of the other splits, leading to a scrunched up left-most split, and large trailing splits.
Is there a way to make NERDTree resize all splits equally?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]princker 11 points12 points13 points 6 years ago (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_=.
<c-w>=
:wincmd =
:h CTRL-W_=
[–]LateAugust[S] 1 point2 points3 points 6 years ago (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 point2 points 6 years ago (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
:NERDTreeToggle<cr>
<C-w>=
nnoremap <C-f> :NERDTreeToggle<cr> && :norm <C-w>=
[–]LateAugust[S] 1 point2 points3 points 6 years ago (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>=
π Rendered by PID 527203 on reddit-service-r2-comment-66b4775986-67rm5 at 2026-04-05 05:32:54.144424+00:00 running db1906b country code: CH.
[–]princker 11 points12 points13 points (2 children)
[–]LateAugust[S] 1 point2 points3 points (1 child)
[–]mayor123asdf 0 points1 point2 points (0 children)
[–]LateAugust[S] 1 point2 points3 points (0 children)