Open idning opened 6 years ago
Thanks, glad to hear you like it!
I think the right thing for me to do here is to completely ignore changing the size of windows that already have a fixed width. This means that they would never be shrunk to 0 width and would never grow to be the same size as the others. However, they would still count as one of your windows when they're part of the range. For instance, let's say you had 4 windows, with Nerdtree being the leftmost:
| | | | |
With the leftmost window active, you run :Accordion 2
| * | |||
Move right 1 window
| | * |||
Move right
| | | * ||
Move right
| || | * |
Alternatively, I could let the window shrink, but return it to its fixed width when visible.
Not sure which of these approaches sounds better, but feel free to chime in with your thoughts. I should be able to work on this sometime this week.
Thanks!
I prefer to keep the NERDTree window pined on the left, another usecase is TagBar, I wan to have the tags visible when I review on source code file:)
Sure, I think I can do that.
By the way, I used to have a very similar setup, but eventually listened to other peoples' advice and use vinegar instead of NERDTree. The basic thought is that you save even more screen real estate by not leaving NERDTree open, and when you do want to browse files, you can bring it up with a single key.
I definitely understand that some people still prefer to leave NERDTree open, just thought I'd pass on the tip =).
@mattboehm that would be great, thanks for recommend for vinegar, I will take a look :)
can't tell how I love this plugin, I have tried to do the same thing in the past year and came up with something worked for me.
then I found this plugin is doing much better then I did! which is great.
But in my vim when I open NERD Tree, it's also showed as same width as the code window. which is too waste, should we make it narrower?