I wish when I bring out NEEDTree or TagBar, the window size is always 1/3 of my original vim window size, no matter how big my vim window is, it's calculated automatically.
How to do this?
vim has built-in function winwidth({nr})
to get window width. If you pass a zero
as win number, it will return your the width of current window.
To change the window size of NerdTree, you have to set the variable: NERDTreeWinSize
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With