rgngl
rgngl

Reputation: 5423

fixing the size of a window in vim

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

Answers (1)

Nick Knowlson
Nick Knowlson

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

Related Questions