Reputation: 5423
Is there a way to fix the size of a window in vim? In a way that when I do a Ctrl-W _
, it would maximize the current window but the one I fixed the size would stay same.
Upvotes: 18
Views: 4604
Reputation: 7426
I think the options you're looking for are:
set wfh
set wfw
(set WinFixHeight, set WinFixWidth)
You can set them on the window that you want to stay the same, but unfortunately only Ctrl-W =
listens to that, not Ctrl-W _
Upvotes: 34