Sometimes we need to change the size of vim terminal to view web pages or other things. At this time, the size of NerdTree cannot move and narrow along with the main window. How to set it to make it narrow following this movement.
Or how to dynamically obtain the entire vim interface size.
This should be GUI controlled, the terminal should not perceive the window size change …
You can resize it with vertical res after changing the size.